title: Declaring variables outside of functional React component
body: <p>Is it OK to declare a variable outside of a functional React component such as: </p>
  
  <pre><code>const outsideVariable = new Map([['key', 'value']])
  const ComponentName = props =&gt; (
    &lt;div&gt;
      Some Text
    &lt;/div&gt;
  )
  
  export default ComponentName
  </code></pre>