摘要:
React 16.6.0 正式发布了!这次主要更新了两个新的重要功能: React.memo() React.lazy(): 使用 React Suspense 进行代码拆分和懒加载 React.memo() 是什么? React.memo() 和 PureComponent 很相似,它帮助我们控制 阅读全文
posted @ 2021-06-22 16:20
王希有
阅读(285)
评论(0)
推荐(0)
摘要:
提到PureComponent,应该并不是react与生俱来就有的,而应该是在15.3版本之后才出现的,主要是为了取代之前的PureRenderMixin。所以对于几年不怎么接触react的我来说,当提到PureComponent的时候,还是有那么些许的懵逼。更不要说它于Component的区别是什 阅读全文
posted @ 2021-06-22 15:03
王希有
阅读(553)
评论(0)
推荐(0)
摘要:
官网地址 https://react.docschina.org/docs/thinking-in-react.html 官网介绍了react开发的哲学,即思维模式,有助于理解和实际开发项目。值得推荐! class ProductCategoryRow extends React.Component 阅读全文
posted @ 2021-06-22 13:58
王希有
阅读(195)
评论(0)
推荐(0)
摘要:
vue-cli 2.0 在webpack.prod.conf.js代码配置 最顶层 增加 const version = new Date().getTime() cosnt webpackConfig = merge(baseWebpackConfig, { ..., // 此处省略 // 增加o 阅读全文
posted @ 2021-06-22 11:26
王希有
阅读(1784)
评论(0)
推荐(0)