Aug 19, 2024
count
that updates on button press.
Counter
and its children (e.g., displaying count) re-render, not the entire App
component.count
as a prop.count
, it still re-renders when the Counter
component re-renders.React.memo
.
React.memo
to memoize the output based on props.React.memo
.React.memo
in future content.