Re:React: it's technically backwards compatible!
by schwartzworld on Sunday September 13, 2020 @08:26AM
(#24460385)
I should also mention, you can access hooks in class components via HOCs. It's just one tiny extra step.
Hooks allow a way to abstract all that logic that used to require a component to house it. Components should still only really care about JSX, any logic more complex than an IF statement can live in functions or hooks.