Do componentWillUpdate() on one component and
I would like to give the state of the parent component in props to the child component when the state or props is updated. How can I do that?
It's not impossible to do anything by React alone, but wouldn't it be better to use Redux as a requirement?If you don't use Redux, you'll smell something that won't be able to handle complexity in the future...
With Redux, this kind of problem can be solved easily.
© 2024 OneMinuteCode. All rights reserved.