- React Alicante
- Powering Code Reuse with Context and Render Props
Powering Code Reuse with Context and Render Props
Forbes Lindesay at React Alicante 2018
React's context API has always been labelled as experimental, but from the advent of Redux it has been used in all the most exciting react libraries. It's about to become a stabilised feature so now is the perfect time to learn the new context API. Combining the context API and render props lets gives you unprecedented power to cleanly reuse code across components. It even plays well with TypeScript and Flow. This talk will explain how context and render props work and give you some ideas of how to use them to simplify your own code.