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