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.
Overview
COURSE DIFFICULTY
Skills Learned
After completing this online training course, students will be able to:
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
01. Getting Started with Svelte
- Introduction
- Setting Up a Svelte App
- Svelte Basics
- Data Binding & Inputs
- Reactive Values
- Loops
- Inline Event Handlers
- Conditionals
- Components
- CSS & Conditional Styles
- Props
- Event Forwarding
- Event Modifiers
- Slots
- Forms (Part 1)
- Forms (Part 2)
- Dispatching Custom Events
02. Putting It All Together - Creating a Polls Website
- Starting the Polls Project
- Header & Footer Components
- Tabs Component
- Poll Form Component
- Custom Button Component
- Custom Form Validation
- Adding New Polls
- Poll Details Component
- Card Component
- Casting Votes
- Outputting Vote Bars
- Intro to Stores
- Lifecycle Hooks (& Unsubbing Subsciptions)
- Updating Store Data
- Deleting Polls
- Transition Basics
- Tweens & Animations
- Wrap Up
SKILLS LEARNED
Skills Learned
After completing this online training course, students will be able to:
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
COURSE OUTLINE
01. Getting Started with Svelte
- Introduction
- Setting Up a Svelte App
- Svelte Basics
- Data Binding & Inputs
- Reactive Values
- Loops
- Inline Event Handlers
- Conditionals
- Components
- CSS & Conditional Styles
- Props
- Event Forwarding
- Event Modifiers
- Slots
- Forms (Part 1)
- Forms (Part 2)
- Dispatching Custom Events
02. Putting It All Together - Creating a Polls Website
- Starting the Polls Project
- Header & Footer Components
- Tabs Component
- Poll Form Component
- Custom Button Component
- Custom Form Validation
- Adding New Polls
- Poll Details Component
- Card Component
- Casting Votes
- Outputting Vote Bars
- Intro to Stores
- Lifecycle Hooks (& Unsubbing Subsciptions)
- Updating Store Data
- Deleting Polls
- Transition Basics
- Tweens & Animations
- Wrap Up