Answer by Sandeep Rajbhar for When do I choose React state Vs Redux Store
There are a few things that need to be graspState of component: If you want to keep state-specific to your HOC then use state. Now in the function component, we use useState.State of redux: If you want...
View ArticleAnswer by Hemachandra for When do I choose React state Vs Redux Store
If state is needed only for that particular component then prefer to use react state.For example using state for UI actionsIf any state you want to use across the component/project then go with redux...
View ArticleAnswer by zloctb for When do I choose React state Vs Redux Store
From book:First of all, we should always keep in mind that only the minimal amount of data needed should be put into the state. For example, if we have to change a label when a button is clicked we...
View ArticleAnswer by CodinCat for When do I choose React state Vs Redux Store
If the state doesn't need to be shared with other components, or the state doesn't need to be keep when the component is unmounted, then you can just put it in the component's state.You can think that...
View ArticleAnswer by Axnyff for When do I choose React state Vs Redux Store
You're absolutely right. Redux (and flux architecture in general) are only formalism tools to help for building large apps. They're not necessary at all.There's actually an interesting post called You...
View ArticleWhen do I choose React state Vs Redux Store
I've been learning Redux and a part I'm unclear of is, how do I make a determination between using react state vs redux store and then dispatching actions. from my reading so far it looks like I could...
View Article
More Pages to Explore .....