const [parentState, setParentState] = useState(false);const [count, setCount] = useState(0);
<Child count={count} />
<MemoChild count={count} />