We may earn an affiliate commission when you visit our partners.
Course image
Georg Schessler and Daniel Szabo

This course provides an overview of the fundamentals of Svelte, a fast and simple frontend framework which is easy to learn and to use.

It will start with introducing the basic concepts with quick examples provided - what does it mean that Svelte is component-based? What are those components built of? How to connect them to use one component inside of another one? How to transfer data between them? How to add logic / asynchronicity / reactivity to them?

Things like that.

Read more

This course provides an overview of the fundamentals of Svelte, a fast and simple frontend framework which is easy to learn and to use.

It will start with introducing the basic concepts with quick examples provided - what does it mean that Svelte is component-based? What are those components built of? How to connect them to use one component inside of another one? How to transfer data between them? How to add logic / asynchronicity / reactivity to them?

Things like that.

The second building block will be about getting an app idea, making a plan about how it should look like, what Svelte components need to be used in order to implement it, what the functionalities of those components have to be, and what should be the relation between them.  And that app will be then built from scratch, step by step, using the basic Svelte concepts introduced previously.

The third part will go into more Svelte details, explaining the component lifecycle and the Svelte special elements. Finally SvelteKit, the popular Svelte framework will be introduced as well - what can it be used for? How does it make routing more efficient? What happens if I call the load method in a script tag with its context set to "module"? Is it a good idea to turn off server-side rendering?

Do these questions sound exciting to you? Then let's give this course a try.

Enroll now

What's inside

Learning objectives

  • Basic and advanced svelte features
  • Building a svelte project
  • Reactive web applications with svelte
  • Using stores in svelte
  • Svelte special elements
  • Fetching data from an api
  • Sveltekit basics

Syllabus

Introduction

What to expect from this course

The first impressions about Svelte

Warming up with classic HTML/CSS/JS

Read more

How to create, build and import a new component.

The first exercise! Create your own Svelte component and discover the current year!

The first solution!

Passing down data from the parent component to the child component.

In Svelte you can use #if statements and #each loops in the HTML code. But how??

Okay now try it yourself.

Let's iterate through those messages!

Have you ever wanted to wait until a promise is resolved?

Calling a function when a button is clicked.

What is event dispatching and how to use it?

Now can you manage to dipatch an event on your own?

This is a way add messages by dispatching an event.

Reactivity is a part where Svelte really shines. All it takes is a '$' and a ':'

Using two-way data binding between an input element and a local variable.

Explaining the concept of the Store - variables accessible from components all across the app.

Svelte Store DIY

Step by step walkthrough to read to and write from a writable store.

Creating variables that are readable by the descendant components.

The project to be implemented in the upcoming videos.

If you want to get the final version, here it is.

NOTE: for syntax highlighting and better autocomplete in VS Code, it's highly recommended to download the Svelte extension ("Svelte for VS Code")

How the app and the component structure should look like.

Adding a store for the Settings values.

The Fact component's job is to display whatever sentence it receives from the Feed component.

An attempt to make the UI just a little bit less ugly.

The API can be found here: https://catfact.ninja/

Explaining some specialities of the setInterval() / clearInterval() functions.

Providing the option to pause and restart the feed, by adding a button to the Settings component.

A few words about onMount(), onDestroy(), beforeUpdate() and afterUpdate() functions.

Tick - a function that returns a promise that resolves as soon as any pending state changes have been applied to the DOM.

Let's assume that the Child component includes both the four lifecycle methods as implemented in the first video and also the implementation of the tick() function as shown in the second video...

What if you want to be up-to-date of your windows width?

Keep track of the details happening around the body!

Is there something you want to add or modify in the HTML head? No problem.

You feel that sometimes this component should be used, sometimes that one? Consider using the <svelte:component> tag!

Be aware of the recursion whenever you use <svelte:self>!

You have the chance to set some specific options with this element.

Slot is not a special element but a quite common one in Svelte.

There is a difference between rendering a div and rendering the content of the div.

Introducing the most popular Svelte framework (as of 2021 December...)

SvelteKit optimizes routing - matching the URL with the components to render.

Two special files in SvelteKit that start with double underscore. What to use them for?

This function takes the request object and returns a session object that is accessible on the client.

A component that defines a page or a layout can export a load function that runs before the component is created.

Is there a file in your routes folder you don't want to reach directly by a URL? Use a file with starting with a single underscore!

How to use variable values as part of the URL?

What's the difference between switching on and off the Server-side Rendering?

Another Svelte Framework, specialized on client-side rounting

The number of Svelte frameworks is increasing.

Traffic lights

Read about what's good
what should give you pause
and possible dealbreakers
Explores the fundamentals of Svelte
Helps learners build their own Svelte project
Covers basic and advanced Svelte features
Helps learners create reactive web applications with Svelte
Teaches learners how to use stores in Svelte
Provides instruction on fetching data from an API
Offers an introduction to SvelteKit

Save this course

Create your own learning path. Save this course to your list so you can find it easily later.
Save

Reviews summary

Mastering svelte basics with practical application

According to learners, this course offers a superb and comprehensive introduction to Svelte and its core concepts, making it ideal for beginners. Students consistently highlight the instructor's clear explanations and engaging teaching style as key strengths, which help demystify complex topics like reactivity and stores. The inclusion of practical examples and a hands-on project is frequently praised for solidifying understanding and allowing for immediate application. While the course provides a strong foundation, some learners note that the SvelteKit section is brief and could benefit from more depth for those seeking advanced knowledge. Overall, it's considered an excellent starting point for Svelte development.
Provides a comprehensive and accessible introduction to Svelte for newcomers.
"This course is absolutely fantastic for anyone new to Svelte."
"A superb introduction to Svelte. The pace is perfect for beginners."
"Solid course covering Svelte basics. Good foundation overall."
"It's a great starting point for Svelte development."
Hands-on project and examples are excellent for applying learned Svelte concepts.
"I particularly enjoyed the project building section, it really solidified my understanding."
"The real-world project was a great way to apply what I learned."
"The hands-on examples are crucial. It's a great starting point for Svelte development."
"The focus on practical application is a huge plus."
The instructor's clear explanations make complex Svelte concepts easy to grasp.
"The instructor explains concepts clearly with practical examples."
"The pace is perfect for beginners and the explanations on component lifecycle were very useful."
"The instructor's teaching style is engaging and makes complex topics easy to grasp."
"This course demystified Svelte for me. The concept of reactivity felt intuitive."
May be challenging for absolute programming beginners due to pace or assumed prior knowledge.
"I felt it moved a bit too fast in some sections, especially for complete beginners."
"I struggled to follow along with the coding exercises without more detailed guidance."
"Definitely not for absolute beginners in programming."
"I think it's better for someone with some prior JS framework experience."
The SvelteKit section is a good introduction but lacks advanced detail.
"My only minor suggestion would be to perhaps add more advanced SvelteKit features."
"SvelteKit part was a bit brief, but it's an 'Introduction' course, so fair enough."
"The SvelteKit part felt rushed."
"I felt the SvelteKit section could be expanded, as it's a critical part of modern Svelte development."

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Introduction to Svelte (and SvelteKit) with these activities:
Refresh your understanding of JavaScript fundamentals
Ensure a strong foundation by reviewing JavaScript fundamentals, which are essential for understanding Svelte.
Browse courses on JavaScript Fundamentals
Show steps
  • Review variables, data types, operators, and control flow in JavaScript.
  • Practice writing simple JavaScript functions and objects.
  • Experiment with DOM manipulation using JavaScript.
Organize and review your Svelte learning materials
Enhance your learning by organizing and reviewing your Svelte notes, assignments, and resources.
Show steps
  • Gather all your Svelte-related materials, including lecture notes, assignments, and online resources.
  • Create a dedicated space for your Svelte learning materials.
  • Review your materials regularly to reinforce your understanding.
Practice with basic Svelte components
Work through the basic examples and assignments in the online course to solidify your understanding of the core Svelte components.
Show steps
  • Create a new Svelte project.
  • Add a simple component to your project.
  • Use props to pass data between components.
  • Create a component that can be reused in multiple places.
Five other activities
Expand to see all activities and additional details
Show all eight activities
Follow along with Svelte tutorial videos
To complement the course materials, find and watch video tutorials on Svelte to reinforce your understanding of concepts.
Show steps
  • Search for Svelte tutorials on platforms like YouTube or Udemy.
  • Choose a tutorial that covers a topic you're interested in.
  • Follow along with the tutorial step-by-step.
Build a simple Svelte application
To demonstrate your mastery of Svelte, create a simple application that uses the concepts you've learned in the course.
Show steps
  • Plan the structure and functionality of your application.
  • Create the necessary Svelte components.
  • Implement the application's logic and functionality.
  • Test and debug your application.
  • Deploy your application to a hosting platform.
Connect with experienced Svelte developers
Seek out experienced Svelte developers in online communities or at meetups to gain insights and guidance for your learning journey.
Show steps
  • Join Svelte-related online forums or communities.
  • Attend local Svelte meetups or conferences.
  • Reach out to Svelte developers on platforms like LinkedIn.
Contribute to an open-source Svelte project
To deepen your understanding of Svelte and contribute to the community, consider contributing to an open-source Svelte project.
Show steps
  • Find an open-source Svelte project that interests you.
  • Review the project's documentation and contribution guidelines.
  • Identify a specific area or feature you can contribute to.
  • Create a pull request with your proposed changes.
  • Collaborate with the project maintainers to refine and merge your contribution.
Create a Svelte study guide
To improve your understanding and retention of the course material, compile a study guide that summarizes the key concepts and examples covered in the course.
Show steps
  • Review the course syllabus and lecture notes.
  • Summarize the main concepts in each section.
  • Include examples and practice exercises.
  • Review and update the study guide regularly.

Career center

Learners who complete Introduction to Svelte (and SvelteKit) will develop knowledge and skills that may be useful to these careers:

Reading list

We've selected 50 books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Introduction to Svelte (and SvelteKit).
Is the official specification for CSS. It comprehensive reference for web developers who want to learn everything about CSS.
This comprehensive guide provides a thorough overview of CSS, covering everything from basic syntax to advanced techniques. It is an essential resource for web developers who want to master CSS and create visually stunning websites.
A comprehensive guide covering the core technologies of front-end web development: HTML, CSS, and JavaScript, along with web graphics. is well-suited for beginners and serves as a solid introduction to the entire process of creating websites. It includes exercises and quizzes to reinforce learning. While it provides a broad understanding, readers looking to specialize in a particular area might need more focused resources later. The latest editions incorporate modern web standards and practices.
Focuses specifically on responsive web design using HTML5 and CSS3, a crucial contemporary topic. It's ideal for those who have a basic understanding of HTML and CSS and want to learn how to build websites that adapt to different devices. It provides practical examples and techniques for modern web development.
Comprehensive guide to progressive web apps (PWAs). It covers everything from the basics of PWAs to advanced topics like offline support and push notifications. It great resource for anyone who wants to learn more about PWAs and how to use them to create engaging and immersive web experiences.
Classic in the JavaScript community, and it is still one of the best books on the language. Crockford leading expert on JavaScript, and his book is full of insights and best practices.
Comprehensive guide to HTML5 and CSS3. It covers everything from the basics of HTML5 and CSS3 to advanced topics like web animations and responsive design. It great resource for anyone who wants to learn more about HTML5 and CSS3 and how to use them to create modern and interactive web pages.
Following the popular Head First approach, this book uses a visually rich and engaging format to make learning HTML and CSS fun and effective. It focuses on understanding the 'why' behind concepts, which is beneficial for solidifying knowledge. While not the most recent, its teaching methodology makes it a valuable resource for beginners.
Provides a comprehensive overview of data binding in JavaScript, covering the different types of data binding, how to use data binding in JavaScript applications, and best practices for using data binding effectively. It also includes practical examples and case studies to help readers apply data binding in their own projects.
Comprehensive guide to web design. It covers everything from the basics of HTML and CSS to JavaScript and jQuery. It great resource for anyone who wants to learn more about web design and how to create beautiful and functional websites.
Classic in the field of responsive web design. It provides a comprehensive overview of responsive design principles and best practices. It great resource for anyone who wants to learn more about responsive web design and how to create websites that work well on all devices.
Comprehensive guide to AngularJS. It covers everything from the basics of AngularJS to advanced topics like routing and data binding. It great resource for anyone who wants to learn more about AngularJS and how to use it to create dynamic and interactive web applications.
Comprehensive guide to responsive web design. It covers everything from basic concepts to advanced techniques such as media queries and flexbox.
Provides a comprehensive overview of data binding in Go, covering the different types of data binding, how to use data binding in Go applications, and best practices for using data binding effectively. It also includes practical examples and case studies to help readers apply data binding in their own projects.
Comprehensive guide to CSS for experienced web developers. It covers advanced topics such as CSS preprocessors, animations, and debugging.
Comprehensive guide to CSS Grid Layout. It covers everything from basic concepts to advanced techniques such as auto-placement and named areas.
A project-based introduction to Django, a high-level Python web framework. is ideal for beginners with some Python knowledge who want to learn full-stack web development. It guides readers through building several web applications, covering concepts like authentication, testing, and deployment. It's a practical and up-to-date resource for learning Django.
Based on the popular online guide, this book provides a structured approach to learning HTML and CSS. Shay Howe's online resources are well-regarded, suggesting this book would offer clear explanations and practical examples for beginners.
Employs a unique, interactive approach with short chapters and exercises designed for better retention. It focuses on building a strong understanding of the fundamentals of HTML and CSS. It's particularly useful for those who prefer a hands-on learning style.
Provides a deeper dive into JavaScript as a programming language. It covers fundamental programming concepts and more advanced topics like asynchronous programming and object-oriented programming. It's highly regarded for its thoroughness and clear explanations, making it suitable for those who want to solidify their understanding of JavaScript beyond the basics. The latest editions are updated to cover modern JavaScript features, making it a relevant reference for contemporary practices.
Known for its clear and concise style, Murach's books are often used in educational settings. provides a solid reference and training guide for HTML5 and CSS3, covering essential concepts and responsive design. It's a good resource for both learning and looking up specific topics.
A quick and accessible guide for beginners to grasp the core concepts of HTML and CSS. It provides a simplified approach to building a coding foundation and understanding responsive design. is good for a rapid introduction to the subject.
This textbook focuses on responsive web design, building upon HTML5 and CSS concepts. It's likely used in educational settings and provides a structured approach to learning how to create websites that work across various devices. It's a solid resource for a deeper dive into responsive design.
For back-end developers using Node.js, this book explores common design patterns and best practices for building scalable and maintainable server-side applications. It delves into asynchronous programming, module patterns, and architectural considerations specific to Node.js. It's a valuable resource for developers looking to deepen their understanding of Node.js development and build robust back-end systems.
Emphasizes an interactive approach to learning HTML and CSS, likely with hands-on exercises and projects. It's good for learners who want to actively practice coding while they learn and solidify their understanding through building.
This comprehensive book aims to teach HTML, CSS, and JavaScript in a structured, time-based format. It's a valuable reference for beginners and intermediate learners looking for an all-in-one resource. While it covers a lot, the depth on HTML might be less than a dedicated HTML book.
This tutorial widely recommended resource for learning the Ruby on Rails framework. It takes a test-driven development approach and guides readers through building a substantial web application. It covers not only Rails but also essential related technologies like Ruby, HTML, CSS, and SQL. It's suitable for those who want to learn full-stack development using a convention-over-configuration framework.
Another foundational software development book with broad applicability to web development. It offers practical advice on a wide range of topics, including writing flexible and maintainable code, learning new technologies, and personal responsibility. These principles are invaluable for web developers at all stages of their careers. It emphasizes a pragmatic approach to building software, which is highly relevant in the ever-evolving web landscape.
This hands-on guide takes readers through the process of building a complete web application using Svelte, from start to finish.
Comprehensive guide to building native mobile apps with Svelte. It covers everything from the basics of Svelte Native to advanced topics like performance optimization and testing.
While not specific to front-end development, this book provides a comprehensive overview of serverless architectures on AWS. It covers everything from the basics of serverless architectures to advanced topics like security and monitoring. It great resource for anyone who wants to learn more about serverless architectures and how to use them to build scalable and cost-effective web applications.
Focuses on writing readable, maintainable, and well-structured code. While not specific to web development languages, the principles of clean code are universally applicable and crucial for building robust web applications, especially as projects grow in complexity. It's a valuable resource for developers looking to improve their coding practices and write more professional-grade software. It's more of a foundational software engineering book that is highly relevant to web development professionals.
Security critical aspect of web development. focuses on common web security vulnerabilities and provides practical guidance for developers to build more secure applications. It covers topics like authentication, authorization, input validation, and protecting against common attacks. It's an important read for all web developers to ensure the applications they build are safe and protected.
Comprehensive guide to Node.js, a popular JavaScript runtime environment. It covers all the basics, as well as more advanced topics such as scaling and testing. It's a great book for anyone who wants to learn Node.js in depth.
Fast-paced guide to JavaScript for experienced programmers. It covers all the basics, as well as more advanced topics such as closures and functional programming. It's a great book for anyone who wants to learn JavaScript quickly.
Great introduction to CSS for web designers. It covers the basics of CSS, as well as more advanced topics such as responsive design and media queries.
Save
Great introduction to CSS for beginners. It covers the basics of CSS, as well as more advanced topics such as responsive design and media queries.
Collection of practical recipes for using CSS to solve common web development problems. It great resource for web developers who want to learn how to use CSS to create more effective and efficient websites.
Offers a jargon-free introduction to HTML5, covering its new features and capabilities. It's helpful for beginners who want to understand the specifics of the latest HTML standard. While it might not cover every aspect in extreme detail, it's a great guide for getting started with HTML5.
Part of the 'In Easy Steps' series, this book provides a straightforward and easy-to-follow guide to learning HTML. It's suitable for beginners and covers the essential elements of HTML. It can be a good supplementary resource for getting a clear understanding of basic HTML.
Save
A visually oriented guide that uses clear examples and step-by-step instructions to teach HTML5 and CSS3. It's a good resource for learners who benefit from visual aids and want a quick way to get started or reference specific tasks.
For those moving into back-end development and working with databases and distributed systems, this book is essential. It provides a deep understanding of the fundamental concepts behind building scalable and reliable data systems, which are at the heart of many modern web applications. It's a challenging read but highly rewarding for experienced developers looking to build robust back-end infrastructure. It's a key resource for understanding the complexities of data handling in web development.
A strong understanding of databases and SQL is essential for most back-end web developers. highlights common mistakes and suboptimal practices when working with SQL databases. It provides solutions and better approaches to database design and querying, which can significantly impact the performance and maintainability of web applications. It's a valuable resource for developers working extensively with databases.
Provides a comprehensive overview of organic chemistry, including topics such as structure, bonding, reactivity, and synthesis.
Provides a visual guide to HTML, CSS, and JavaScript, aiming to help users build for the web. It likely focuses on practical application and visual examples, making it suitable for beginners who prefer a visual learning style.
For developers working on larger, more complex web applications, understanding microservices architecture is increasingly important. explores the concepts, benefits, and challenges of designing and implementing microservices. It covers various patterns and best practices for building distributed systems. It's a more advanced topic but highly relevant for those involved in building scalable web platforms.
Foundational text on the principles and practices of continuous integration and continuous delivery. These concepts are vital for modern web development teams to release software frequently and reliably. It covers automation, testing strategies, and deployment pipelines. It's a key resource for understanding the operational aspects of delivering web applications.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to Introduction to Svelte (and SvelteKit).

Udemy Buyer Protection & Guarantee

Verified partner policies & purchase protections

Global Marketplace Leader
Free Trial & Audit

Free Lecture Previews

Free preview video lectures available for all courses; optional 7-day free trial on Personal Plan subscriptions (cancel before trial ends to avoid conversion).

Return & Refund Policy

30-Day Money-Back Guarantee

30-day money-back guarantee on all eligible individual course purchases (provided course content has not been substantially consumed or downloaded). Subscription fees are non-refundable once billed.

Buyer Protections

Verified Academic & Industry Partner

Lifetime access to purchased individual courses and future updates, verifiable certificate of completion, and direct student Q&A forums.

Key Purchase Protections
30-day 100% money-back guarantee on course purchases
Lifetime access on web, mobile, and offline
Certificate of completion included with purchase
Direct instructor Q&A and active student community
OpenCourser Verified Partner Policy details last reviewed: 2026-10-22
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser