adspace


Name the different React lifecycle methods.

Answer Posted / Neelendra Kumar Verma

The main React lifecycle methods are:n* componentDidMount - called after a component is mountedn* componentWillMount - called before a component is mountedn* shouldComponentUpdate - called before rendering when props or state changen* componentDidUpdate - called after a successful updaten* componentWillReceiveProps - called before the next prop value is passed to the componentn* componentWillUnmount - called before a component is unmounted

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use events in reactjs? Give an example of using events?

565


How would you create higher order components (hocs) in react.js?

448