How does a redux connected component know when to re-render?
问题 I'm probably missing something very obvious and would like to clear myself. Here's my understanding. In a naive react component, we have states & props . Updating state with setState re-renders the entire component. props are mostly read only and updating them doesn't make sense. In a react component that subscribes to a redux store, via something like store.subscribe(render) , it obviously re-renders for every time store is updated. react-redux has a helper connect() that injects part of the