FAQ: Mounting Lifecycle Methods - Mounting Lifecycle Methods

This community-built FAQ covers the “Mounting Lifecycle Methods” exercise from the lesson “Mounting Lifecycle Methods”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn ReactJS: Part II

FAQs on the exercise Mounting Lifecycle Methods

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Test # 2

Test are failing if you add any comments to the work area. That needs to be addressed. You will spend a lot of wasted time thinking you are doing this wrong. We shouldn’t be addressing doubt and confusion over an improper test.

In a component’s life cycle the first method that gets called is the constructor. And the constructor mounts the component to the virtual DOM. But what if we don’t add the constructor. As in the previous lessons we did not have a constructor method. That means that the component was not mounted onto the virtual DOM then , how was it being rendered ?

1 Like