title: how to use a function from another js file in reactjs?
body: <p>i have a file <code>something.js</code> which has a function:</p>
  
  <pre><code>someFunction: function(arg1, arg2){
      //code blocks
  }
  </code></pre>
  
  <p>In my <code>app.js</code> file i want to call this function in the <code>app</code> class. I have imported the <code>something.js</code> file like this <code>import { someFunction } from './something.js';</code>. Now i am trying to use it in a function in the <code>app</code> class</p>
  
  <pre><code>var res = someFunction("abc", 2); 
  console.log(res);`
  </code></pre>
  
  <p>i am getting a error <code>Uncaught TypeError: (0 , _something.someFunction) is not a function</code></p>
  
  <p>Some help would be appreciated.</p>