title: Define component as constant
body: <p>Im following a React Native course and at some point the teacher defines a component as constnat using the following code:</p>
  
  <pre><code>const Comment = (props) =&gt;
    &lt;Text&gt;{props.text}&lt;/Text&gt;
  </code></pre>
  
  <p>However I dont manage to make it work. I made a snack to just try the component individually and it doesnt work: <a href="https://snack.expo.io/S1eKSeV-7" rel="nofollow noreferrer">https://snack.expo.io/S1eKSeV-7</a></p>
  
  <p>I always get the error <em>Invariant Violation: element type is invalid.</em></p>
  
  <p>What Im doing wrong?</p>