lucasrohrbach / svelte-sample

A sample web-app using the framework Svelte

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercise

Apply the learned Svelte basics

Enhance the blank sample svelte app.

  • Separate the increment Button into status ext and 2 buttons for increment and decrement
  • Add a component that takes a input parameter and display multiple such components with different values, The values should be defined in a collection
  • Add a component that displays a random number, allow the number to be bound to from the defining component
  • Create a js or ts file with a store and a component that uses an auto subscription
  • Add a component that uses a slot with a fallback value
  • Create a component with a custom event handler. Subscribe to the event and trigger it from the component
  • Add a conditional block to a component that shows different behavior based on a variable

About

A sample web-app using the framework Svelte


Languages

Language:Svelte 75.2%Language:JavaScript 8.8%Language:HTML 8.1%Language:TypeScript 6.6%Language:CSS 1.2%