React 16.3(.0-alpha)新特性

3,905次阅读
没有评论

共计 316 个字符,预计需要花费 1 分钟才能阅读完成。

React 16.3-alpha 已经发布。这次发布都有哪些新特性呢,我们来一起看看。

目录

  • 新的 Context API
  • 新的声明周期方法
  • Static Mode
  • AsyncMode
  • 新版 React Developer Tools

总结

对于小的开发没什么,注意生命周期的变化。

要被废弃的方法:

  • componentWillMount — 使用 componentDidMount 代替
  • componentWillUpdate — 使用 componentDidUpdate 代替
  • componentWillReceiveProps – 使用一个新的方法:static getDerivedStateFromProps 来代替。

阅读

原文阅读:React 16.3(.0-alpha) 新特性

正文完
 0
评论(没有评论)
验证码