import React from 'react'

//class-based component (ES6)
class SearchBar extends React.Component {
  render() { //method definition in ES6
    return <input />;
  }
}

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

//class-based component (ES6)
class SearchBar extends Component {
  render() { //method definition in ES6
    return <input />;
  }
}

export default SearchBar;
Refactor to ES6 syntactic sugar
Refactor to ES6 syntactic sugar
