4 ms·
Does any body uses Redux these days? For forms, native FormData api covers most of the use cases without the need to manage any state. And for more advanced use
by emadabdulrahim 4y ago
Does any body uses Redux these days? For forms, native FormData api covers most of the use cases without the need to manage any state. And for more advanced use cases, React Hook Form is the best https://react-hook-form.com/ https://react-hook-form.com/.
For other types of state management, use:
- react-query: Server cache (api requests and cache results, mutations, etc)
- Zustand of Zotai for actual application state management (only if necessary)
- com2kid 4y ago> Does any body uses Redux these days? New projects, hopefully not, but there are untold millions of lines of existing code out there that use Redux, in code bases that will continue to grow their usage of redux.
- samarthr1 4y agoWhat exactly is wrong with redux though?
- com2kid 4y agoTons of unnecessary code overhead for doing very simple operations. For simple forms, redux buys you nothing, but it is easily 3x the code.
- mckravchyk 4y agoOne change to one item in the global store will fire up subscriptions for every single item in the store. I don't care how fast those comparison checks are thanks to Immutable.js, it's still a big waste of CPU.
- livindub 4y agoMay I suggest Formik instead of react hook forms. The way it handles internal form state has always seemed more intuitive to me.