Search posts, tags, users, and pages
Learn how to leverage React's `useReducer` hook for simpler, more scalable state management in your applications. 🚀🌟
Aditya Dhaygude
@Aadii04 · Pune
I Build Stuff
i Build Stuff
Markdown supported · ⌘↵ to post
Nam Trần
Nice wrap up for react useState! In my project, if I need update a state synchronized with its old value, I pass directly reducer function to setState function; If I need to use multiple state I’ll use multiple useState.
Nam Trần
Nice wrap up for react useState! In my project, if I need update a state synchronized with its old value, I pass directly reducer function to setState function; If I need to use multiple state I’ll use multiple useState.