hooks react functions code example
Example 1: react hooks
const [state, setState] = useState(initialState);
Example 2: usestate
const [count, setCount] = useState(0);
const [state, setState] = useState(initialState);
const [count, setCount] = useState(0);