[英]Redux, React state update and re-render component
When you connect a component to the redux store, and you map the redux state to props, if a state changes into a new state, the component re-renders.当您将组件连接到 redux 存储,并将 redux 状态映射到 props 时,如果状态更改为新状态,则组件会重新渲染。 Just like when you pass a state to a child component and that state changes.就像您将状态传递给子组件并且该状态发生变化时一样。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.