DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Next.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Next.js
What's the difference between app/shop/[...slug]/page.js and app/shop/[[...slug]]/page.js?
A
No difference — they're identical
B
The optional form ([[...slug]]) also matches the bare /shop route with zero segments; the plain catch-all requires at least one
C
The plain catch-all matches more routes
D
Optional catch-all only works with TypeScript
Check Answer