Is it ok to pass setState as a prop in React?