How do you do a simple useState hook based on a user action such as onClick? In the example snippet below, setCount is not allowed to be inside a function, and
setCount