Data flow in React is top to bottom. But what if your child component needs to update its parent’s state?
Data flow in React is top to bottom. But what if your child component needs to update its parent’s state?