With React Hooks, we can separate the state with useState and update ... return <button onClick={addToArr}>Add to array</button>; }.
確定! 回上一頁