title: React how to apply`componentDidMount()
body: <p>I am using redux and reactjs. I need to add few function in  <code>componentDidMount()</code> to the following root react component.</p>
  
  <p>I am not using react class extend. How can I apply <code>componentDidMount()</code> and my logic there?</p>
  
  <pre><code>   const App = () =&gt; (
        &lt;div&gt;
          &lt;NavigationContainer /&gt;
        &lt;/div&gt;
      )
  
  export default App
  </code></pre>