React 有提到state 的更新,都必須要是immutable,當你有使用到useState 或是pureComponent、shouldComponentUpdate,你就會發現問題。
確定! 回上一頁