title: Should you test that all components render without crashing?
body: <p>I am completely new to testing react applications. I am wondering is there a need for testing that every component renders without crashing, or does just testing the App component suffice as it is the parent of all components?</p>
  <p>Also, any tip and what to test for in a component would be great :)</p>
  <pre><code>import { render } from &quot;@testing-library/react&quot;;
  import App from &quot;./App&quot;;
  
  // Test that the App Component renders without crashing
  describe(&quot;App&quot;, () =&gt; {
    test(&quot;renders App component&quot;, () =&gt; {
      render(&lt;App /&gt;);
    });
  });
  </code></pre>
  <p>For example, in another component would I do the following test:</p>
  <pre><code>import { render } from &quot;@testing-library/react&quot;;
  import App from &quot;./App&quot;;
  
  // Test that the AnotherComp Component renders without crashing
  describe(&quot;AnotherComp&quot;, () =&gt; {
    test(&quot;renders App component&quot;, () =&gt; {
      render(&lt;AnotherComp/&gt;);
    });
  });
  </code></pre>