Home / Companies / Apollo / Blog / Post Details
Content Deep Dive

Simplify your React components with Apollo and Recompose

Blog post from Apollo

Post Details
Company
Date Published
Author
Sashko Stubailo
Word Count
1,142
Language
English
Hacker News Points
-
Summary

Sashko Stubailo presents a React component toolbox using Apollo Client and Recompose, focusing on simplifying components with server-side rendering, pure-rendered components, default props, limited state variables, and managing variables like state outside of the component. The author showcases an example of how to use Recompose together with React Apollo to have a concise UI with GraphQL, demonstrating techniques such as using higher-order components (HOCs) like `withState` and `branch`, and keeping data loading separate from rendering concerns, allowing for more predictable and maintainable code.