title: React js- pass value to other form and use in class
body: <p>so I've got two files.<br></p>
  
  <p>First file:</p>
  
  <pre><code>btn1_handle = (id_value: any) =&gt; {
  receiveID(id_value);
  </code></pre>
  
  <p>Second file:</p>
  
  <pre><code>    export const receiveID = (id_value: any) =&gt; {
      console.log(id_value);
      this.setState{ii: id_value};
  }
  </code></pre>
  
  <p>But I can't change the state, because the exported const is outside the class. How can I change the state?</p>