title: How to add a priority to react components?
body: <p>I want my Home component to load first and then everything else? How can I achieve this?</p>
  <p>Or can I load resources in the background while I'm showing a spinner and then show the whole page? Something like this..</p>
  <pre><code>useEffect(() =&gt; {
      setTimeout(() =&gt; {
        setIsLoading(false);
      }, 2500);
    }, []);
  
    return isLoading ? (
      &lt;Spinner /&gt;
    ) : (
      &lt;div className=&quot;App&quot;&gt;WholePage&lt;/div&gt;
  </code></pre>