0.0.5 • Published 4 years ago

beeshell-next v0.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

step1: install

  cnpm install -S beeshell-next
  or
  yarn add beeshell-next

step2: use

docs

notice : use this commponents,you will get worning as follows

二. 由于未来采用异步渲染机制,所以即将在17版本中去掉的生命周期钩子函数
componentWillMount
componentWillRecieveProps
componentWIllUpdate

三. 新增两个
static getDerivedStateFromProps
会在初始化和update时触发,用于替换componentWillReceiveProps,可以用来控制 props 更新 state 的过程;它返回一个对象表示新的 state;如果不需要更新,返回 null 即可
getSnapshotBeforeUpdate
用于替换 componentWillUpdate,该函数会在update后 DOM 更新前被调用,用于读取最新的 DOM 数据,返回值将作为 componentDidUpdate 的第三个参数

needs spport react 17+

  developing...
0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago