4 ms·
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 f
by dbbk 5y ago
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.
- ranza 5y agoWell 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 />}