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 now a stabilised feature so now is the perfect time to learn the new context API. Combining the context API and render props & hooks 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 & hooks work and give you some ideas of how to use them to simplify your own code.
YOU MAY ALSO LIKE:
Powering Code Reuse with Render Props, Hooks and Context in React
Forbes is a software developer at Threads Styling where he builds complex React and Node.js applications. In his spare time, Forbes maintains a number of open source projects, such as Pug, Promise and Cabbie.js