reading-notes


Project maintained by Razan-am Hosted on GitHub Pages — Theme by mattgraham

Advanced State with Reducers

How can we ensure that an effect hook runs only once?

Can useState() update more than one state variable at the same time?

Is useState() synchronous?


Terms


Ultimate Guide to useReducer

How does useReducer work?


References:

@By Yangshun Tay/Multiple calls to state updater from useState in component causes multiple re-renders

@By Saransh Kataria/Provide callback to useState hook like setState

@By Ejiro Asiuwhu/The ultimate guide to the React useReducer Hook