Lesson 13From render-props and high-order components to hooks
Before hooks landed in React, you could use two patterns to extract some behavior from a component to reuse it:
- render-props components
- high-order components (HOC)
These patterns are still valid with hooks, but most libraries started using hooks instead, since they are easier to use in components.
In this section we’ll see how to convert existing render-props or high-order components to hooks.