The main issue is that React needs state passed around as props otherwise, which becomes unweieldy if you didn’t have a global state.
I believe it also makes debugging state issues easier if you have a single source of truth.
Edit: this is somewhat alleviated by the introduction of the React Context API[1], which provides some cleaner functionality but requires quite a few extra components in the render tree.
I believe it also makes debugging state issues easier if you have a single source of truth.
Edit: this is somewhat alleviated by the introduction of the React Context API[1], which provides some cleaner functionality but requires quite a few extra components in the render tree.
[1]: https://reactjs.org/docs/context.html