2 hook in one react code example Example: react hooks const [state, setState] = useState(initialState);