import React from 'react';

class SearchBar extends React.Component {
	render() {
		return <input />;
	}
}

export default SearchBar;
import React, { Component } from 'react';

class SearchBar extends Component {
	render() {
		return <input onChange={this.onInputChange} />;
	}

	onInputChange(event) {
		console.log(event.target.value);
	}
}

export default SearchBar;
Add some syntactic sugar to the import command to shorten the class exstension.
Add some syntactic sugar to the import command to shorten the class exstension.
