学以致用,react学习前奏准备阶段
Posted ggbondlearn
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了学以致用,react学习前奏准备阶段相关的知识,希望对你有一定的参考价值。
ReactJS:支持React开发,提供JSX代码提示,高亮显示,ReactJS官方介绍
1、cdm→ componentDidMount: fn() { ... }

2、cdup→ componentDidUpdate: fn(pp, ps) { ... }

3、cs→ var cx = React.addons.classSet;

4、cwm→ componentWillMount: fn() { ... }

5、cwr→ componentWillReceiveProps: fn(np) { ... }

6、cwu→ componentWillUpdate: fn(np, ns) { ... }

7、cwun→ componentWillUnmount: fn() { ... }

8、cx→ cx({ ... })

9、fdn→ React.findDOMNode(...)

10、fup→ forceUpdate(...)

11、gdp→ getDefaultProps: fn() { return {...} }

12、gis→ getInitialState: fn() { return {...} }

13、ism→ isMounted()

14、props→ this.props.

15、pt→ propTypes { ... }

16、rcc→ component skeleton

17、refs→ this.refs.

18、ren→ render: fn() { return ... }

19、scu→ shouldComponentUpdate: fn(np, ns) { ... }

20、sst→ this.setState({ ... })

21、state→ this.state.

作者:Loki_
链接:https://www.jianshu.com/p/45ac37cc0e34
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
以上是关于学以致用,react学习前奏准备阶段的主要内容,如果未能解决你的问题,请参考以下文章