Svelte · Middle · Question 72 of 75
What is the rest parameter [...path] useful for?
- ✓Correct answer: Matching any number of segments, e.g.
/docs/a/b/cwithpath = "a/b/c", or a custom 404 page - 2Spreading props into a page
- 3Matching query strings
Explanation
A [...rest] route in a folder can render a custom not-found page for that section.