Your second React.js app

This time you'll learn about state, event handlers, the inverse data flow and more.
    /*
    
    You'll learn:
    - State
    - Event handlers
    - Controlled components
    - Inverse data flow
    - Using API's
    
    Component structure:
    --Main
    -----Search
    -----Results
    -------ResultItem
    class Main extends React.Component {
      render() {
        return (
          <div>
            <Search />
            <Results /> 
          </div>
        );
      }
    }
    
    class Search extends React.Component {
      render() {
        return (
    class Main extends React.Component {
      constructor() {
        super();
        this.state = {
          searchQuery: ''
        };
        this.handleChange = this.handleChange.bind(this);
      }
    
      handleChange(e){
        this.setState({
          searchQuery: e.target.value
        });
      }
    class Main extends React.Component {
      constructor() {
        super();
        this.state = {
          searchQuery: '',
          results: []
        };
        this.handleChange = this.handleChange.bind(this);
        this.handleClick = this.handleClick.bind(this);
      }
    
      handleClick(){
        $.ajax({
          type: 'GET',