Recall & Review
beginner
What is SvelteKit?
SvelteKit is a framework built on top of Svelte that helps you build fast, modern web apps with routing, server-side rendering, and more.
Click to reveal answer
beginner
How does SvelteKit handle routing?
SvelteKit uses a file-based routing system where the folder and file names inside the
src/routes folder define the app's pages and routes automatically.Click to reveal answer
intermediate
What is server-side rendering (SSR) in SvelteKit?
SSR means SvelteKit can generate HTML on the server before sending it to the browser, making pages load faster and improving SEO.
Click to reveal answer
beginner
Name one way SvelteKit improves developer experience.
SvelteKit offers hot module replacement (HMR), so changes you make in code update instantly in the browser without a full reload.
Click to reveal answer
intermediate
What is the role of endpoints in SvelteKit?
Endpoints in SvelteKit let you create server-side functions to handle API requests, like fetching or sending data, directly inside your app.Click to reveal answer
What folder defines routes in a SvelteKit app?
✗ Incorrect
In SvelteKit, the
src/routes folder controls the app's routing by file and folder names.Which feature helps SvelteKit apps load pages faster by generating HTML on the server?
✗ Incorrect
Server-side rendering (SSR) creates HTML on the server before sending it to the browser, speeding up page loads.
How does SvelteKit update the browser when you change code during development?
✗ Incorrect
Hot module replacement (HMR) updates only the changed parts instantly without a full reload.
What can you create inside SvelteKit to handle API requests?
✗ Incorrect
Endpoints are server-side functions in SvelteKit to handle API requests.
Which of these is NOT a feature of SvelteKit?
✗ Incorrect
SvelteKit does not include a built-in CSS framework; styling is up to the developer.
Explain how routing works in SvelteKit and why it is helpful.
Think about how folder and file names become URLs.
You got /4 concepts.
Describe the benefits of server-side rendering in SvelteKit.
Consider what happens before the page reaches the browser.
You got /4 concepts.