A bridge between React Class components and Hooks

Random image of an industrial hook
Photo by @gigalilac on Unsplash

Two patterns to benefit from React hooks in your React class components.

One of the great features of React is its component-based nature. Originally, function and class components coexisted and there were clear usages for both. Function components would be the most basic reusable components with no other logic than returning JSX. On the other hand, class components were…