News for hackers. Stuff that matters.
Re:Next.js 11 by dbbk on Tuesday June 15, 2021 @04:59PM (#27521411)
In Next, every route blows away the DOM and starts over. You can’t have nested routes like you can in React Router, where say you have different layout shells for logged out / logged in views, and then master/detail views where you navigate down a hierarchical navigation.
Re:Next.js 11 by ranza on Tuesday June 15, 2021 @06:12PM (#27522201)
Well you sort of can. Just have a [view].js file, where the view variable will be the component. So you can have {view === 'details' && <Details />}