It returns a pair of values: the current state and a function that updates it. This is why we write const [count, setCount] = useState() .
確定! 回上一頁