I'getting undefined this error in the constructor. Let me know what is the reason behind this. I read from the sources either compiler automatically creates the constructor and available this reference or need to manually add the constructor with super() as the first statement.
class A extends Component {
constructor() {
// this undefined error
console.log('construtor');
this.state = {name: ''}
}
}