pull/354/merge
CHAITANYA KATORE 2 years ago committed by GitHub
commit dccc400435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,7 +21,7 @@
- [Component Life Cycles](#component-life-cycles) - [Component Life Cycles](#component-life-cycles)
- [What is component life cycle](#what-is-component-life-cycle) - [What is component life cycle](#what-is-component-life-cycle)
- [Mounting](#mounting) - [Mounting](#mounting)
- [Contructor](#contructor) - [Constructor](#constructor)
- [getDerivedStateFromPros](#getderivedstatefrompros) - [getDerivedStateFromPros](#getderivedstatefrompros)
- [Render](#render) - [Render](#render)
- [ComponentDidMount](#componentdidmount) - [ComponentDidMount](#componentdidmount)
@ -95,7 +95,7 @@ const rootElement = document.getElementById('root')
ReactDOM.render(<App />, rootElement) 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. 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