const [counter, setCounter] = useState(0);. Later if you want to update the counter : setCounter(counter => counter + 1) ...
確定! 回上一頁