Home  • Programming • React

React class component's lifecycle method orders

1 componentWillMount() 2 set the initial state in the constructor 3 render() 4 componentDidMount() 5 setState() 6 render() Note : In any state change render() method will execute again.

Comments 0


Copyright © 2024. Powered by Intellect Software Ltd