React: Day 10

Today I learned about lifecycle in React, each component in React has lifecycles. There are 3 main things that we need to consider here, mounting, updating, and unmounting.
The mounting part is when a component is initialized, an ideal example would be putting elements in the DOM.
class MyClass extends React.Component {
constructor(props) { 👈 Mounting lifecycle method
super(props)
this.state = {…