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);
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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);