title: Refresh display reactjs when changes the json file
body: <p>Good morning:
   I'm Jose and I designed a little component in Reactjs with data source in a json file. My problem is that my component don't detect the changes in this json file and the content remains static.  </p>
  
  <p>Thanks for your help</p>
  
  <p>The code is :</p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import axios from 'axios'
  import './index.css';
  
  class TableUser extends React.Component {
    constructor(props) {
      super(props);
  
      this.state = {
        data: []
      };
    }
  
  
    componentDidMount(){    
      axios
        .get('http://myhost/procesos_arbol.json',
  
      )
  
        .then(({ data })=&gt; {
          console.log(data);
          this.setState({ 
            data: data
          });
        })
        .catch((err)=&gt; {console.log('no recibido')})
    }
  
    render() {
      const child = this.state.data.map((el) =&gt; {
        return &lt;div&gt;
          &lt;p&gt;key={ el.nid } | Título - { el.title } | 
          padre - {el.parent}&lt;/p&gt;
        &lt;/div&gt;
      });
  
      return &lt;div&gt;
        &lt;div&gt;{ child }&lt;/div&gt;
      &lt;/div&gt;;
    }
  }
  
  ReactDOM.render(
    &lt;TableUser /&gt;,
    document.getElementById('container')
  );
  </code></pre>