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
11
u/markus_obsidian Sep 10 '24
This is amazing in the most horrifying way. I am in old codebases a lot that is just too costly to refactor. I find myself wrapping hooks in HOCs a lot so my classes can use them. I would absolutely use a stable version of this.