When you use useState , you can get an update method for the state item: const [theArray, setTheArray] = useState(initialArray);.
確定! 回上一頁