title: React Variable value is not changing
body: <p>i'm trying to do something in react and i got stuck .. i don't know why this is happening, i can't explain myself.</p>
  
  <pre><code>let content = null;
  storage.ref().child(snapshot.val().content).getDownloadURL().then(url =&gt; content = url ); // setting value
  
  console.log('content', content); // returns initial value, in my case, null. why?
  </code></pre>
  
  <p>Line 19</p>
  
  <p><a href="https://pastebin.com/UkJyJihB" rel="nofollow noreferrer">https://pastebin.com/UkJyJihB</a></p>
  
  <p>Thanks!</p>