Skip to content

Commit

Permalink
Fixed issue Asabeneh#353 by changing "contructor" spelling
Browse files Browse the repository at this point in the history
to "constructor"
  • Loading branch information
ProfoundlyParker committed Jul 14, 2023
1 parent 8b41cd4 commit 5ef1239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 14_Day_Component_Life_Cycles/14_component_life_cycles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -95,7 +95,7 @@ const rootElement = document.getElementById('root')
ReactDOM.render(<App />, 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.

Expand Down

0 comments on commit 5ef1239

Please sign in to comment.