title: Const = () => vs Class Functions function name() {} in React Native
body: <p>I'm new to react native, I'm bit confused about components.</p>
  <p>As I created first react native app I saw <code>App.js</code> the components in App.js created as per following code:</p>
  <pre><code>export default function App() {
   ...
  }
  </code></pre>
  <p>and as I saw tutorials many people almost all people making components as per following code:</p>
  <pre><code>const FirstComponents = () =&gt; {
    ...
  }
  </code></pre>
  <p>I'm also confuse about function components and class based components which created as per following code:</p>
  <pre><code>export default class FirstComponents extends Components(){
   ...
  }
  </code></pre>
  <p>What is the difference between function and class base components?</p>
  <p>Please provide me answer with examples. Your time will be appreciated.</p>