From 12b1ce476eb737b26081305f6dfa42b3d24b8ffa Mon Sep 17 00:00:00 2001 From: ThomSullivan Date: Tue, 28 Mar 2023 07:58:51 -0500 Subject: [PATCH] Typo fixes for day 14 --- 14_Day_Component_Life_Cycles/14_component_life_cycles.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/14_Day_Component_Life_Cycles/14_component_life_cycles.md b/14_Day_Component_Life_Cycles/14_component_life_cycles.md index fb00594..4886ad2 100644 --- a/14_Day_Component_Life_Cycles/14_component_life_cycles.md +++ b/14_Day_Component_Life_Cycles/14_component_life_cycles.md @@ -130,7 +130,7 @@ const rootElement = document.getElementById('root') ReactDOM.render(, rootElement) ``` -### getDerivedStateFromPros +### getDerivedStateFromProps As we can understand from the name, this method derives a state from props. The getDerivedStateFromProps() method is called right before rendering the component in the DOM. This the right place to set the state object based on the initial props. @@ -427,7 +427,7 @@ class App extends Component { shouldComponentUpdate(nexProps, nextState) { console.log(nextProps, nextState) - // if the return is true, the application will never update. + // if the return is not true, the application will never update. return true }