FAQ: Updating/Unmounting Lifecycle Methods - componentWillUpdate

This community-built FAQ covers the “componentWillUpdate” exercise from the lesson “Updating/Unmounting 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 componentWillUpdate

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!

The lesson says,

All of the lifecycle methods might feel a bit theoretical, until you’ve used them in real-life scenarios. You’ll be doing more of that in the next course.

Where is “the next course”? The syllabus of Learn ReactJS: Part II doesn’t mention any “next” course…

1 Like

In example.js, task 2 tells us not to put yellow in quotes as “yellow is defined on line 3 as a variable.” However, it’s defined in line 3 of TopNumber.js, not example.js and TopNumber.js doesn’t import example.js, so how does example.js know what the value of yellow is?

Open TopNumber.js you shoud be working in TopNumber.js

Once again everyone, if you’ve not seen the other forum posts.
This is deprecated now in React.

please check out the documentation so you don’t start by learning bad practices.

componentWillReceiveProps and
componentWillMount all are UNSAFE according to react and they have been deprecated since 2018.