title: What is the difference between Class and Const when creating UI in react-Native?
body: <pre><code>const App = () =&gt; (
    &lt;View&gt;
      &lt;Text&gt;Test&lt;/Text&gt;
    &lt;/View&gt;
    )
  
  class App extends Component {
    render() {
      return (
        &lt;View&gt;
          &lt;Text&gt;Test&lt;/Text&gt;
        &lt;/View&gt;
      );
    }
  }
  </code></pre>
  
  <p>When I test, two things are the same.
  Please tell me the difference between these two.</p>