ReactJS: React to support development, provide JSX code hints, highlight, ReactJS official introduction
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.
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.