How to write a React component without using classes or hooks

added by JavaScript Kicks
8/21/2019 7:10:06 AM

284 Views

With the release of React Hooks I have seen a lot of posts comparing class components to functional components. Functional components are nothing new in React, however it was not possible before version 16.8.0 to create a stateful component with access to lifecycle hooks using only a function. Or was it?


0 comments