Lang
Blog

SvelteKit- A New Svelte Framework to Supersede SapperJS

Embracing the Serverless Paradigm!

ByPayal Mittal
June 9th . 5 min read
SvelteKit- A New Svelte Framework to Supersede SapperJS
localhost:3000/user/[user id]
<!-- src/routes/__layout.svelte -->
<nav>
 <a href=".">Home</a>
 <a href="about">About</a>
 <a href="settings">Settings</a>
</nav>
<slot></slot>
<!-- src/routes/index.svelte -->
<h1>Home</h1>
<!-- src/routes/about.svelte -->
<h1>About</h1>
<!-- src/routes/settings.svelte -->
<h1>Settings</h1>
npm init svelte@next my-app
cd my-app
npm install
npm run dev
npm run build
npm run start
Share:
0
+0