Apply their knowledge, react learning prelude to the preparation phase

ReactJS: React to support development, provide JSX code hints, highlight, ReactJS official introduction


1、cdm→  componentDidMount: fn() { ... }

 
cdm

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

 
cdup

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

 
cs

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

 
valley

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

 
over

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

 
hot water

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

 
cwun

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

 
cx

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

 
fdn

10、fup→  forceUpdate(...)

 
Scam

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

 
gdp

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

 
gis

13、ism→  isMounted()

 
ism

14、props→  this.props.

 
props

15, pt → propTypes {...}

 
pt

16、rcc→  component skeleton

 
rcc

17、refs→  this.refs.

 
refs

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

 
ren

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

 
scu

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

 
sst

21、state→  this.state.

 
state


Author: Loki_
link: https: //www.jianshu.com/p/45ac37cc0e34
Source: Jane books
are copyrighted by the author. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

Guess you like

Origin www.cnblogs.com/GGbondLearn/p/12115316.html