0
0
Svelteframework~5 mins

SvelteKit overview - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Apublic
Bsrc/components
Csrc/routes
Dsrc/assets
Which feature helps SvelteKit apps load pages faster by generating HTML on the server?
AServer-side rendering
BHot module replacement
CStatic site generation
DClient-side rendering
How does SvelteKit update the browser when you change code during development?
AFull page reload
BHot module replacement
CManual refresh
DNo update until restart
What can you create inside SvelteKit to handle API requests?
AEndpoints
BComponents
CStores
DActions
Which of these is NOT a feature of SvelteKit?
AHot module replacement
BFile-based routing
CServer-side rendering
DBuilt-in CSS framework
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.