title: Different Views based on Logged in vs Logged out
body: <p>I've noticed a lot of sites, like github.com, stackoverflow.com, facebook.com all have different views based on if you're logged in or logged out (splash page vs user dynamic page)</p>
  <p>I'm building an app off of Next JS/React, so would this be a simple if-else statement that can be done by changing the component based on if user is authenticated or not? Or is there something else that might be more complex than this?</p>
  <p>i.e. for index.js (home page)</p>
  <pre><code>if (authenticated) {
    &lt;SignedInView /&gt; // this would be user feed page with bunch of dynamic content
  } else {
    &lt;SignedOutView /&gt; // this would be a splash page
  }
  
  </code></pre>