DEV Community

Discussion on: Passing Down Functions As Props in React

Collapse
 
husseinkizz profile image
Hussein Kizz

Thanks for the post sure, however, it didn't rock well for me, I just want to pass a onchange event handler to usestate() without creating a new component i.e I instead want something like
const [items, setItems] = usestate(prop);