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