how to use states in functions reasct code example
Example 1: reading state react
<p>You clicked {count} times</p>
Example 2: usestate
const [count, setCount] = useState(0);
<p>You clicked {count} times</p>
const [count, setCount] = useState(0);