-
componentWillMount() – Executed before rendering, both on the client and server.
-
componentDidMount() – only executed on the client side after the first render.
-
componentWillReceiveProps() – Called when props are received from the parent class and before calling another renderer.
-
shouldComponentUpdate() – Returns true or false based on specific conditions. If you wish to update the component, return true otherwise return false. By default, it returns false.
-
componentWillUpdate() – Called before rendering in the DOM.
-
componentDidUpdate()– Called immediately after rendering occurs.
-
componentWillUnmount() – Called after unmounting the component from the DOM. Used to clear memory space.
React life cycle?
Guess you like
Origin blog.csdn.net/m0_45865109/article/details/125548095
Recommended
Ranking