[Solved] TypeError: Cannont Read Property `State` of Undefined


Use arrow function instead so:

Change

onFormSubmit(event){
    event.preventDefault();
    console.log(this.state.term);
}

To

onFormSubmit= (event)=>{
    event.preventDefault();
    console.log(this.state.term);
}

solved TypeError: Cannont Read Property `State` of Undefined