Does React re-render all components and sub components every time setState() is called?
setState()
If so, why? I thought the idea was that React only rendered as li
Not All Components.
the state in component looks like the source of the waterfall of state of the whole APP.
state
So the change happens from where the setState called. The tree of renders then get called from there. If you've used pure component, the render will be skipped.
renders
render