react hooks multiple useState declarations code example Example: react hooks const [state, setState] = useState(initialState);