r/javascript • u/nullvoxpopuli sand was never meant to think • Sep 10 '24
Use react hooks in classes
https://github.com/NullVoxPopuli/classy-react/tree/main
3
Upvotes
r/javascript • u/nullvoxpopuli sand was never meant to think • Sep 10 '24
1
u/teg4n_ Sep 10 '24
With preact, you can use hooks directly in the render function as if it was the full component.