title: 'JsonTable' is not defined react/jsx-no-undef
body: <p>I'm trying to get an Json value into the json table in react but it is throwing an error "'JsonTable' is not defined  react/jsx-no-undef".
  What should i do? Is there Some file i need to import.</p>
  
  <pre><code>    import React, { Component } from 'react';
  import {Link} from 'react-router-dom';
  export default class SearchHistory extends Component {
    constructor()
    {
        super();
        this.state={data:null};
    }
          componentDidMount () {
  
              this.data().then(data =&gt; {
                  const self=this;
                  this.setState({data:data});
              });
  
          }
          columns() {
              return[
                  {key:'name',label:'Name'},
                  {key:'age',label:'Age'},
                  {key:'color',label:'Color',cell:(obj,key) =&gt; {
                      return &lt;span&gt;{obj[key]} &lt;/span&gt;;
                  }}
                  ];
          }
  
          data() {
       return new Promise((resolve,reject)=&gt; {
           resolve([
                   {name:'sssss',age:20,color:'red'}
                      ]);
  
          });       
      }
  
          render() {
              &lt;JsonTable rows={this.state.data} columns={this.columns()} /&gt;
      return (
              &lt;div&gt;Loading.... &lt;/div&gt;
            )
  
  
      }
      }
  </code></pre>
  
  <p>Thank you</p>