React: Do children always rerender when the parent component rerenders?
I’ll post your actual code for context: class Application extends React.Component { render() { return ( <div> {/* Clicking this component only logs the parents render function */} <DynamicParent> <Child /> </DynamicParent> {/* Clicking this component logs both the parents and child render functions */} <StaticParent /> </div> ); } } class DynamicParent extends React.Component … Read more