menu_book Course Curriculum (Svelte 5) expand_more
Component Syntax
Runes & Reactivity
Composition
Motion & Lifecycle
SvelteKit Routing
File-based routes
Learn File-based routes in Svelte 5 with a dedicated explanation, a concept-specific example, a production caution, and a mastery check.
12 min read
•
Advanced
svelte-5-033.svelte
svelte
<!-- src/routes/products/[id]/+page.svelte -->
<script>let { data }=$props();</script>
<h1>{data.product.name}</h1>
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content