Company
Date Published
Author
Sashko Stubailo
Word count
1142
Language
English
Hacker News points
None

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.