render() {
    return ( 
      <div className="search-bar">        
        <input 
        value={this.state.term}
        // whenever onChange is ever called it will then call to onInputChange
        onChange={event => this.onInputChange(event.target.value)} />
      </div>  
    );    	
  }
/* the input tells the state to change the rendering of the DOM*/
the input tells the state to change the rendering of the DOM
the input tells the state to change the rendering of the DOM
render() {
    return ( 
      <div className="search-bar">        
        <input 
        value={this.state.term}
        onChange={event => this.onInputChange(event.target.value)} />
      </div>  
    );    	
  }
render ( ) { return ( < div className = "search-bar" > < input value = { this . state . term } onChange = { event => this . onInputChange ( event . target . value ) } / > < / div > ) ; }
the input tells the state to change the rendering of the DOM
the input tells the state to change the rendering of the DOM
// whenever onChange is ever called it will then call to onInputChange