title: How do i display different times with React/JSX?
body: <p>I am having trouble rendering a time for different countries using JSX without hardcoding the return value as seen in my code below. I tried passing it through the Date.now but it did not work. I want to do it for three random countries. How exactly would i structure it? </p>
  
  <p>Here is my current code </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;html&gt;
   &lt;head&gt;
     &lt;!-- we need to specify the react framework here --&gt;
     &lt;script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"&gt;&lt;/script&gt;
     &lt;script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"&gt;&lt;/script&gt;
     &lt;script src="https://unpkg.com/babel-standalone@6/babel.min.js"&gt;&lt;/script&gt;
   &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="root"&gt;&lt;/div&gt;
  &lt;script type="text/babel"&gt;
  
  
  
  function Clock(props, city) {
    return &lt;h1&gt;The time is {props.date.toLocaleTimeString({timeZone:'Europe/London'})}&lt;/h1&gt;
  }
  
  
  function tick () {
    ReactDOM.render(
      &lt;Clock date={new Date()}/&gt;,
      document.getElementById('root')
    )
  }
  setInterval(tick, 1000)
  
  
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>