Why do I need a reduction in the reaction of my own?

I am trying to figure out why I need a contraction, if the RN already has a state, I can use the state as I want, as an action or change something.

So why do I need this?

+3


source to share


1 answer


Redux provides a "shared state" that every component can access. For example, you may have found that the parent component needs to know the state of the child component. You can only allow this in Reactit by passing a method as a props to the child, but this is not a pattern you want to repeat over and over, especially as your component structure becomes more complex and hierarchical. Redux offers an elegant solution. However, for small applications this is probably not needed.



+6


source







All Articles