title: How to pass const value from one react js file to another?
body: <p>I am a little new on react. How can I pass a variable with its value from one react js file to another?</p>
  <p>File A.js:</p>
  <pre><code>const [value, setValue] = useState(35)  
  </code></pre>
  <p>File B.js:</p>
  <pre><code>import value from &quot;./A.js&quot;
  console.log(value)
  </code></pre>