From e6304efb280eb530c40bee3a8bd088e678ac4aad Mon Sep 17 00:00:00 2001 From: zakingslayerv22 <11926638+zakingslayerv22@users.noreply.github.com> Date: Mon, 1 Dec 2025 10:48:31 -0500 Subject: [PATCH 1/2] Update component_lifecycle_methods.md Not very right phrasing. The component is "reliant" on the data fetched from the API and not vice versa. --- react/class_components/component_lifecycle_methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/class_components/component_lifecycle_methods.md b/react/class_components/component_lifecycle_methods.md index 482597d7ac1..7d6226f5cb0 100644 --- a/react/class_components/component_lifecycle_methods.md +++ b/react/class_components/component_lifecycle_methods.md @@ -16,7 +16,7 @@ The render function is the most used lifecycle method, and one that you've come ### componentDidMount() -This method is run after the component is mounted (inserted in the DOM tree). You should make any calls to fetch data that is needed for the component here. It is also a good place to do anything that is reliant on the component, such as fetching from an API. +This method is run after the component is mounted (inserted in the DOM tree). You should make any calls to fetch data that is needed for the component here. It is also a good place to perform any operations that depend on the component being mounted in the DOM, such as fetching from an API. ### componentDidUpdate() From 03f93af6e8d83fe542434e246242ee28df4c1ff8 Mon Sep 17 00:00:00 2001 From: zakingslayerv22 <11926638+zakingslayerv22@users.noreply.github.com> Date: Sun, 7 Dec 2025 04:50:51 -0500 Subject: [PATCH 2/2] Update react/class_components/component_lifecycle_methods.md Co-authored-by: mao-sz <122839503+mao-sz@users.noreply.github.com> --- react/class_components/component_lifecycle_methods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/class_components/component_lifecycle_methods.md b/react/class_components/component_lifecycle_methods.md index 7d6226f5cb0..e96cba15b1f 100644 --- a/react/class_components/component_lifecycle_methods.md +++ b/react/class_components/component_lifecycle_methods.md @@ -16,7 +16,7 @@ The render function is the most used lifecycle method, and one that you've come ### componentDidMount() -This method is run after the component is mounted (inserted in the DOM tree). You should make any calls to fetch data that is needed for the component here. It is also a good place to perform any operations that depend on the component being mounted in the DOM, such as fetching from an API. +This method is run after the component is mounted (inserted in the DOM tree). You should make any calls to fetch data that is needed for the component here. It is also a good place to perform any operations that depend on the component being mounted in the DOM. ### componentDidUpdate()