push () function will not work, but the .concat() function can update state in React when state is a JavaScript array — as can … , the spread operator.
確定! 回上一頁