We may earn an affiliate commission when you visit our partners.
Course image
Maximilian Schwarzmüller and Academind by Maximilian Schwarzmüller

Svelte.js is a modern JavaScript compiler that allows you to write easy-to-understand JavaScript code which is then compiled to highly efficient code that runs in the browser.

Read more

Svelte.js is a modern JavaScript compiler that allows you to write easy-to-understand JavaScript code which is then compiled to highly efficient code that runs in the browser.

You'll write your frontend application using normal JavaScript, following specific rules laid out by Svelte (which are of course taught in this course). As a result, the Svelte compiler will produce a small and highly optimized JavaScript bundle which can be deployed.

In this course, you learn all about Svelte, how it works, its core features and how to run your final app on a real server.

Svelte.js is a tool for building highly reactive, modern user interfaces for the web - and it's a great alternative to JavaScript frameworks and libraries like React.js, Angular or Vue.

What will you learn?

  • What is Svelte and why would you use it?

  • All the core features and base syntax

  • How to render conditional and list content

  • How to write reactive and fast web applications

  • All about components, how to pass data around and how to create re-usable building blocks

  • How to efficiently manage data in your application via Svelte stores

  • How to reach out to a backend server and send + fetch data

  • How to pre-render your app on a server and improve SEO

Is this course for you?

Svelte is a popular alternative to React.js, Angular and Vue and learning it will benefit any frontend web developer.

You don't need to know these frameworks to learn Svelte though - but if you do know them, you'll learn about an interesting alternative which might allow you to build your web projects with less code (and get an even faster app along the way. ).

You need NO advanced JavaScript knowledge, basic knowledge will do.

If you're interested in building modern, reactive user interfaces that load quickly and run fast, SvelteJS is a tool you shouldn't overlook.

What's in the course?

  • Learn Svelte from scratch - zero knowledge assumed.

  • Theory and practice modules

  • A complete course project (the "meetup planner")

  • Assignments and tasks

  • All source code is attached to lectures and modules

  • 30 day trial phase - get your money back with no questions asked if you're not happy.

Who's teaching you?

My name is Maximilian Schwarzmüller and I'm teaching a broad variety of web & mobile development topics here on Udemy. I immediately loved Svelte when I learned about it since it fills an important gap between vanilla JavaScript and frameworks like Angular, React or Vue.

It can be used to replace these frameworks or to enhance apps built with them - and I simply love lightweight apps and clean syntax rules.

Enroll now

What's inside

Learning objectives

  • Sveltejs from scratch, with zero knowledge assumed
  • All the theory and practical applications of svelte
  • Core concepts and advanced techniques to build svelte applications

Syllabus

Getting Started
Introduction
Why Svelte?
What is Svelte?
Read more
Join our Online Learning Community
Setting Up a First App & The Course Project
Writing Some Svelte Code
Course Outline
How To Get The Most Out Of The Course
Course Resources
Base Syntax & Core Features
Module Introduction
Using Curly Braces & Understanding the Core Syntax
Reactive Variables
More Reactivity
Binding to Element Properties
Two-Way Binding Shortcut
Using Multiple Components
Components & Communication via Props
Diving Deeper into Bindings
Using Self-Extending Properties
Outputting HTML Content
A XSS Example
Setting Dynamic CSS Classes
Time to Practice: The Basics
Wrap Up
Useful Resources & Links
Working with Conditionals & Loops
Using "if" Statements in HTML
if, else & else-if
Outputting Lists with "each"
"each", "else" & Extracting the Index
Lists & Keys
Time to Practice: Conditionals & Loops
A Closer Look at List Keys
A Closer Look at Reactivity
Updating Arrays & Objects Immutably
Understanding Event Modifiers
Using Inline Functions
Course Project - First Steps
Project Setup & A First Component
Different Ways of Mounting Components
How to Embed Widgets
Adding Data
Adding a New Component (MeetupItem)
Working with Different Component Types
Passing Data Into Components
Adding a "MeetupGrid" Component
Adding New Meetups via a Form
Creating a "TextInput" Component
Adding a Custom "Button" Component
Diving Deeper Into Components
Understanding the Different Component Types
Component Communication Overview
Event Forwarding
Emitting Custom Events
How to Extract Event Data
Using Spread Props & Default Props
Working with Slots
Named & Default Slots
Example: Opening & Closing a Modal
Using Slot Props
The Component Lifecycle - Theory
Creation & Update Lifecycle Hooks in Action
Using "tick()"
Course Project - Components Deep Dive
Adding Default Props
Communication via Custom Events
Utilizing Slots
Creating an "EditMeetup" Component
Communicating Between Components
Time for More Slots!
Adding a Re-Usable "Modal" Component
Finishing the "Modal" Component
Working with Bindings & Forms
Two-Way Binding Refresher
Understanding Custom Component Bindings
Relying on Automatic Number Conversion
Binding Checkboxes & Radio Buttons
Binding