kaniosrn-j
8/14/2017 - 2:48 PM

Class-Based Components

Class-Based Components

import React, {Component} from 'react';
// same as
// const Component = React.Component;

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

export default SearchBar;