render() {
		//always manipulate state, using this.setState
		//this.state.term : referencing is ok
		return (
			<div className="search-bar">
				<input 
					value={this.state.term} //update the user input whenever the state changes
					onChange={event => this.onInputChange(event.target.value)} />
			</div>
		); //pass that event handler function which is defined as method within SearchBar class. All HTML input elements emit change event whenever a user interacts with them		
	}
//render function: define method and must return some JSX
render function: define method and must return some JSX
render function : define method and must return some JSX
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 > ) ; }
render function: define method and must return some JSX
render function : define method and must return some JSX
//always manipulate state, using this.setState //this.state.term : referencing is ok //update the user input whenever the state changes //pass that event handler function which is defined as method within SearchBar class. All HTML input elements emit change event whenever a user interacts with them		