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?
I'm a fan of Open Source and have a growing interest in serverless and edge computing. I'm not a big fan of spiders, but they're doing good work eating bugs. I also stream on Twitch.
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
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?
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 ReactConf2018useState hook doesn't replace anything it
actually allows us to use state in functional components.
Redux hook