title: Importing variables from another js file into a new js file React
body: <p>this is a beginner question, but I have a variable in a js file, React; and I want to use it in another JS file but exporting doesn't seem to work and it gives me an error because I have two export methods :</p>
  
  <pre><code>export default class Login
  export var LoginToken = this.state.LoginToken
  
  ....
  import {LoginToken} from './../../../../Components/Login/Login.js'
  
  const headers = {
   Authorization: LoginToken
  }
  
  error: TypeError: undefined has no properties (export LoginToken part)
  </code></pre>
  
  <p>How should I import LoginToken variable?</p>