NA +91-8727899942 thecoderjob@gmail.com

CHAPTER - 20

Life cycle (class component)

Render

This method execute when update state, props

Eg:

class Parent extends React.Component{

  constructor(){

    super();

    this.state={

      name:"xyz"

    }

  }

  render(){

    return <>

      <h1>Hello World {this.state.name}</h1>

    </>

  }

}

export default App;

Chapter 19

Life cycle (class component)

Previous chapter

Chapter 21

Life cycle (class component)

Next chapter

Get In Touch

NA

thecoderjob@gmail.com

+91-8727899942

Popular Links

© www.thecoderjob.com. All Rights Reserved.               Designed by HTML Codex