Development

Svelte for Beginners

Intermediate
4h

By: Shaun Pelling

Svelte for Beginners

Overview

Svelte stands out in the landscape of web development frameworks by diverging from the traditional runtime-focused frameworks. It introduces a unique compile-time architecture where the framework itself disappears, leaving behind highly optimized vanilla JavaScript. The key to Svelte's approach is its compiler, which translates high-level declarative components into imperative code that directly manipulates the DOM when the state of the application changes. This results in applications that are inherently smaller and faster, as there's no abstraction layer of a virtual DOM. Svelte's syntax is clean and approachable, making it an attractive option for beginners looking to build interactive web interfaces without the overhead of complex state management and prop-drilling common in other frameworks.

Skills Learned

  • Set up a basic Svelte application.
  • Grasp Svelte's core concepts.
  • Implement data binding and handle inputs.
  • Utilize reactive values in Svelte.
  • Iterate over data with loops.
  • Attach inline event handlers.
  • Apply conditional rendering.
  • Construct and use Svelte components.
  • Style components and use conditional styles.
  • Pass props to child components.
  • Forward events between components.
  • Use event modifiers.
  • Implement slots for content distribution.
  • Handle forms and form data.
  • Dispatch custom events in Svelte.
  • Build and use a tab system component.
  • Create and validate custom form components.
  • Manage application state with Svelte stores.
  • Utilize lifecycle hooks and manage subscriptions.
  • Update reactive state in stores.
  • Implement deletion of items from state.
  • Apply basic transitions and animations.

Modules

1. Getting Started with Svelte

1.1 Introduction7 min
1.2 Setting Up a Svelte App7 min
1.3 Svelte Basics9 min
1.4 Data Binding & Inputs7 min
1.5 Reactive Values7 min
1.6 Loops6 min
1.7 Inline Event Handlers8 min
1.8 Conditionals5 min
1.9 Components7 min
1.10 CSS & Conditional Styles10 min
1.11 Props5 min
1.12 Event Forwarding7 min
1.13 Event Modifiers3 min
1.14 Slots6 min
1.15 Forms (Part 1)7 min
1.16 Forms (Part 2)9 min
1.17 Dispatching Custom Events11 min

2. Putting It All Together - Creating a Polls Website

2.1 Starting the Polls Project4 min
2.2 Header & Footer Components8 min
2.3 Tabs Component16 min
2.4 Poll Form Component8 min
2.5 Custom Button Component10 min
2.6 Custom Form Validation9 min
2.7 Adding New Polls11 min
2.8 Poll Details Component8 min
2.9 Card Component4 min
2.10 Casting Votes11 min
2.11 Outputting Vote Bars7 min
2.12 Intro to Stores8 min
2.13 Lifecycle Hooks (& Unsubbing Subsciptions)8 min
2.14 Transition Basics8 min
2.15 Updating Store Data6 min
2.16 Deleting Polls7 min
2.17 Tweens & Animations9 min
2.18 Wrap Up3 min

Ready to Elevate Your Team's Learning?

Talk with our sales team to see how StormWind can transform the way your organization trains and grows.

CONTACT SALES