From 5ef123968124f890b437ace4a76a7693ee692dbd Mon Sep 17 00:00:00 2001 From: ProfoundlyParker Date: Fri, 14 Jul 2023 13:56:38 -0400 Subject: [PATCH] Fixed issue #353 by changing "contructor" spelling to "constructor" --- 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..ed20f5a 100644 --- a/14_Day_Component_Life_Cycles/14_component_life_cycles.md +++ b/14_Day_Component_Life_Cycles/14_component_life_cycles.md @@ -21,7 +21,7 @@ - [Component Life Cycles](#component-life-cycles) - [What is component life cycle](#what-is-component-life-cycle) - [Mounting](#mounting) - - [Contructor](#contructor) + - [Constructor](#constructor) - [getDerivedStateFromPros](#getderivedstatefrompros) - [Render](#render) - [ComponentDidMount](#componentdidmount) @@ -95,7 +95,7 @@ const rootElement = document.getElementById('root') ReactDOM.render(, rootElement) ``` -### Contructor +### Constructor Nowadays we write class based-component without a constructor and we can write the state also outside the constructor. In older version React we the state used be always inside the constructor.