Update 14_component_life_cycles.md

pull/354/head
CHAITANYA KATORE 2 years ago committed by GitHub
parent 8b41cd49c3
commit 925551bf23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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(<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.

Loading…
Cancel
Save