Loading…

A component copies a prop into state with useState(props.value) and then keeps it in sync with useEffect. What is wrong with this, and what should you do instead? · Araket