react useState called from different functions code example Example: usestate const [count, setCount] = useState(0);