Name the different React lifecycle methods.



Name the different React lifecycle methods...

Answer / 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

More React.js Interview Questions

How to add google analytics for react router?

1 Answers  


What is the difference between dom and virtual dom in reactjs?

1 Answers  


How to embed two components in one component?

1 Answers  


How are actions defined in redux?

1 Answers  


How can we build react in production mode?

1 Answers  


How to use forms in reactjs? Give an example of using forms in reactjs by developing a user registration form?

1 Answers  


What is the use of ‘prop-types’ library?

1 Answers  


How to set focus in reactjs?

1 Answers  


What is uncontrollable component in reactjs?

1 Answers  


How do you apply vendor prefixes to inline styles in react?

1 Answers  


What is the second argument that can optionally be passed to setState and what is its purpose?

1 Answers  


When reactjs released?

1 Answers  


Categories