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
Do not use state and effects within react-jhipster #19633
Comments
What makes you think that? react-hook-form uses useState and useEffect so why shouldn't react-jhipster be able to do that too? |
react-jhipster is a library (equivalent to a bunch of jsx.elements). useState should be at the component level. |
Overview of the feature request
The goal of this FR being to get rid of useState and useEffect within react-jhipster library.
The approach would be to create dedicated react elements by input kind (text, date, numbers, ...) and to keep using react-forms api, instead of using the actual reflection-intensive, not that easy to debug, React form wrapper
Motivation for or Use Case
Newest React version now forbids the use of state and effects within a library.
Related issues or PR
POC here: #19560
First react element here: jhipster/react-jhipster#87
The text was updated successfully, but these errors were encountered: