Reuse stateful logic between components; - Classes are still confusing people; - React wants to be relevant for more and more years; - You don’t need to rewrite all your code; - Opt-in and 100% backwards-compatible.
a c t j s . o r g / d o c s / h o o k s - reference.html#additional-hooks https://reactjs.org/docs/hooks-faq.html https://github.com/rehooks/awesome-react- hooks https://medium.com/@dan_abramov/making- sense-of-react-hooks-fdbde8803889 Additional