title: Next.JS - Access `localStorage` before rendering page
body: <p>Let's say I have a user's account information stored in <code>localStorage</code> (client side). I need my Next.JS app to render the webpage's navbar based on what's stored in <code>localStorage</code> (login or logout button). How can I first obtain the value from the client and <strong>then</strong> render the page? Or perhaps that isn't even what Next.JS is meant to do?</p>