Next.js conditional rendering
Hi guys! I just started with Next.js and I am a bit confused.
How should I use conditional rendering here?
I have an "Auth" boilerplate in which I want to render <Login /> or <Register /> based on prop/something.
Should I use "getStaticProps" or choose what I should render based on the path (but if I would go with the second option if it still would be SSR?)
0 Replies