The problem of React constructor

Why aren"t the functions here written as function constructor (props) {

...

}

class LoginControl extends ReactDOM.Componet(){
    constructor(props){
        super(props);
        this.handleLoginClick = this.handleLoginClick.bind(this);
    }
}
Mar.23,2021

this is how to write es6 class. You can take a look at the es6 class section

.
Menu