constructor(props) {
super(props);
console.log('---------constructor--------')
}
componentWillMount() {
console.log('---------componentWillMount--------')
}
componentDidMount() {
console.log('---------componentDidMount--------')
}
componentWillReceiveProps(nextProps) {
console.log('---------componentWillReceiveProps--------')
this.setState({
});
}
shouldComponentUpdate(nextProps, nextState) {
console.log('---------shouldComponentUpdate--------')
return true;
}
componentWillUpdate(nextProps, nextState) {
console.log('---------componentWillUpdate--------')
}
componentDidUpdate(preProps, preState) {
console.log('---------componentDidUpdate--------')
}
render() {
console.log('---------render--------')
return (
<Tex></Text>
);
}
componentWillUnmount() {
console.log('---------componentWillUnmount--------')
}