首先要介绍的就是 React.memo ,这个API 可以说是对标类组件里面的 PureComponent ,这是可以减少重新render 的次数的。 ... React.memo 的基础用法.
確定! 回上一頁