r/reactjs • • Sep 10 '24

Show /r/reactjs Use react hooks in classes

https://github.com/NullVoxPopuli/classy-react/tree/main
3 Upvotes

2 comments sorted by

1

u/nullvoxpopuli Sep 10 '24 edited Sep 10 '24

Just a little challenge i whipped up. Not meant for serious usage. 

Try it here on stackblitz: https://stackblitz.com/edit/vitejs-vite-e9khzt?file=src%2FApp.jsx

Some video evidence of it working:https://x.com/nullvoxpopuli/status/1833305383542178172/

0

u/[deleted] Sep 10 '24

[deleted]

1

u/nullvoxpopuli Sep 10 '24

oops -- thanks -- updated!