Fixed issue #353 by changing "contructor" spelling

to "constructor"
pull/355/head
ProfoundlyParker 2 years ago
parent 8b41cd49c3
commit 5ef1239681

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