score:3

Accepted answer
class MyComponent extends Component {
    constructor(props){
        super(props);
        console.log("New instance of MyComponent is created");
    }
}

Related Query

More Query from same tag