-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React 19 Support? #4613
Comments
That depends on whether or not you use these API's, what particular use case are you seeking to fill with useActionState that is outside of server-components/...? React 19 hasn't been out for long and we are still in conversations about the merit of some of these hooks |
Are function refs with cleanup supported in preact? |
Yes, that landed in #4436 |
useActionState is particulary useful, it eliminates a lot of boilerplate when it comes to form submission. It's true that you can do everything it does with the already existing hooks, but it's a lot cleaner IMO, and i've dropped libraries like react hook form thanks to it, (which also reduced my bundle size lol) But most importantly, to me, preact has always been a tool that I can use as an alias for react to reduce my bundle size and improve my web app's experience, it would be a shame if that were not the case anymore |
Certain features from React 19 like useActionState and more currently do not work and therefore it is impossible to alias a react 19 project to preact
The text was updated successfully, but these errors were encountered: