title: Check the render method of `App`
body: <blockquote>
    <p>Element type is invalid: expected a string (for built-in components)
    or a class/function (for composite components) but got: undefined. You
    likely forgot to export your component from the file it's defined in,
    or you might have mixed up default and named imports.</p>
    
    <p>Check the render method of <code>App</code>.</p>
  </blockquote>
  
  <p>App.js</p>
  
  <pre><code>import React, {Component, Fragment} from 'react';
  import {Typeahead, Control} from 'react-typeahead';
  import {FormGroup} from 'react-bootstrap';
  
  
  export default class App extends Component {
    constructor(props) {
      super(props);
      this.state = {
        multiple: false
      }
  }
  
      render() {
        const {multiple} = this.state;
        return (
  
      &lt;Fragment&gt;
        &lt;Typeahead
          labelKey="name"
          multiple={multiple}
          options={[
          'Waylon Dalton',
          'Justine Henderson',
          'Abdullah Lang',
          'Marcus Cruz',
          'Thalia Cobb',
          'Mathias Little',
          'Eddie Randolph',
          'Angela Walker',
          'Lia Shelton',
          'Hadassah Hartman',
          'Joanna Shaffer',
          'Jonathon Sheppard'
        ]}
          placeholder="Choose a state..."
        /&gt;
        &lt;FormGroup&gt;
          &lt;Control
            checked={multiple}
            onChange={(e) =&gt; this.setState({multiple: e.target.checked})}
            type="checkbox"&gt;
            Multi-Select
          &lt;/Control&gt;
        &lt;/FormGroup&gt;
      &lt;/Fragment&gt;
         )
      }
  }
  </code></pre>
  
  <p>index.js</p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import './index.css';
  import App from './App';
  
  
  ReactDOM.render(&lt;App /&gt;, document.getElementById('root'));
  </code></pre>
  
  <p>I created this project using CRA. This error states that there is something wrong in my import/export but i don't find anything wrong in my import/export of both the files, error is focusing on App.js render function and also render of index.js file. I also checked here but it didn't work for me, can someone help me.</p>