title: Rendering a 'multiple' page App from one React file
body: <p>Hello fellow SO users !</p>
  
  <p>I have a question about react and trying to display a multiple page application all in one html document but not loading everything at the beginning of course but whenever each one page is accessed.</p>
  
  <p>So here's an example:</p>
  
  <pre><code>return( 
  &lt;div&gt;{
   if something&lt;*MainPage/&gt;
   else&lt;*SecondPage/&gt;}
  &lt;/div&gt; );
  </code></pre>
  
  <p>Is something like this possible ? </p>
  
  <p>Thank you in advance ! </p>
  
  <p>Have a great day !</p>