Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

480
Views
how to rendering the root page in nested routes in Next.js

This is my dir structure on Next.js app:

pages
   |-users
   |     |-index.js
   |     |-[userid]
   |       |-index.js 
   index.js

when I call domain.com/users/1 I want the users->index.js component to be rendered as well. it only renders the /userid route with this structure.

equivalent in react-router <Outlet/> but I couldn't find how to do in Next.js

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!