functional component react set multiple states code example Example: usestate const [count, setCount] = useState(0);