DEV Community

[Comment from a deleted post]
Collapse
 
gameoverwill profile image
Wilfredo Pérez

Hey thanks for your post. I have 2 question that I don't understand or those are lil confuse to me. With useReducer hook, Will not be necessary using a redux library anymore??

And the second question is, Will useState hook replace the actual way how we save in the state?

Collapse
 
nickytonline profile image
Nick Taylor • Edited

useState is meant for saving state when using a function to create a component. If you are using a class, the old way still holds. I recommend checking the Hooks proposal documentation out and check out Ryan Florence 90% Cleaner React talk from ReactConf2018

Collapse
 
sait profile image
Sai gowtham • Edited

useState hook doesn't replace anything it
actually allows us to use state in functional components.

Redux hook