CodeExample_Svelte Svelte Themes

Codeexample_svelte

5 simple code examples created for my written report about Svelte

Svelte Code Example

This project containd 5 simple code examples I created for my written report about Svelte.

  1. Conponent Structure
  2. Binding: Text/Group Inputs
  3. Props
  4. Slots
  5. Each Blocks

Throughout my code you can also find other interesting Svelte syntax including but not limited to if blocks, svelte/transition, motion and animate.

If you have the project opened in your code editor, run the below commands in the terminal to get started.

cd svelte-app
npm install

... and then

npm run dev

The app should then be running in your localhost. Alternatively you can click the below demo link!

Demo: https://svelte.dev/repl/83fb182ab992479da0076aba8a73148e?version=3.46.4


(This is an appendix to my individual assignment from my school.)

Top categories

Loading Svelte Themes