by acdlite · 10y ago · 0 comments
State in React is local to a component, but it can be passed down to a component's children in the form of props.
Centralized state can be achieved using a library like Redux, where an individual component subscribes to an external data store's changes. Redux abstracts the details away, but under the hood it's still just setState.
No comments yet.