From version 16.8.0, React introduced us to a way to use state and other React features without writing a class — React Hooks. It’s an amazing improvement around the classic Class paradigm which allows us to reuse stateful logic between components.
Full article