From e329f5b500490256194dc9f15eb9a5964d5ff0e8 Mon Sep 17 00:00:00 2001 From: mhefuz8 <146924776+mhefuz8@users.noreply.github.com> Date: Fri, 13 Oct 2023 22:37:17 +0530 Subject: [PATCH] Update component_lifecycle_methods.md --- react/class_components/component_lifecycle_methods.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/react/class_components/component_lifecycle_methods.md b/react/class_components/component_lifecycle_methods.md index 98c6c2af69a..f0abef95bb5 100644 --- a/react/class_components/component_lifecycle_methods.md +++ b/react/class_components/component_lifecycle_methods.md @@ -63,11 +63,11 @@ In this snippet, the useEffect contains the functionality of `componentDidMount` This section contains questions for you to check your understanding of this lesson on your own. If you’re having trouble answering a question, click it and review the material it links to. -* What is the only required lifecycle method? -* What lifecycle method should you use for initial data fetching? -* When you want to act upon change of the DOM, or of state, what lifecycle method would you use? -* When performing cleanup actions, what lifecycle method should be used? -* How does the useEffect hook combine some of the lifecycle methods? +* [What is the only required lifecycle method?](#render) +* [What lifecycle method should you use for initial data fetching?](#componentdidmount) +* [When you want to act upon change of the DOM, or of state, what lifecycle method would you use?](#componentdidupdate) +* [When performing cleanup actions, what lifecycle method should be used?](#componentwillunmount) +* [How does the useEffect hook combine some of the lifecycle methods?](#how-useeffect-combines-the-lifecycle-methods) ### Additional resources