Loading...
Loading...
const MemoChild = React.memo(({ name }) => { return <p>Hello, {name}</p>;}); function Parent() { const [count, setCount] = useState(0); return ( <div> <p>{count}</p> <button onClick={() => setCount(c => c + 1)}> + </button> <MemoChild name="Alice" /> </div> );}waiting
no cache entries yet
no render decisions yet