Is it ok to pass setState as a prop in React?
No, it's not It's possible to pass setState as a prop in React. However, it's not the recommended way to deal with updating state triggered by child components. Passing down setState makes it hard to reason about the state of the component. State m...
Jun 23, 20242 min read4.0K







