> But I also don’t understand, why react renders all child components if the parent renders. As long as their props stay the same, they should just stay as they are.
It "renders" all child components if their parent renders in order to check if their props have changed or not.
If the component has not actually changed, it does not actually re-draw it.
It "renders" all child components if their parent renders in order to check if their props have changed or not.
If the component has not actually changed, it does not actually re-draw it.