Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Svelte 3 Up and Running

You're reading from   Svelte 3 Up and Running A fast-paced introductory guide to building high-performance web applications with SvelteJS

Arrow left icon
Product type Paperback
Published in Aug 2020
Publisher Packt
ISBN-13 9781839213625
Length 168 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Alessandro Segala Alessandro Segala
Author Profile Icon Alessandro Segala
Alessandro Segala
Arrow right icon
View More author details
Toc

Chapter 3: Building Reactive Svelte Components

Svelte is more than a framework: it's also a compiler, and, according to its creator Rich Harris, even a language. In fact, Svelte "extends" both HTML and JavaScript, in a natural way that has been applauded by developers.

In the previous chapter, we set up our environment and scaffolded the Svelte project. We also got a glimpse of how Svelte components work.

In this chapter, we'll be building the various Svelte components that our journaling app uses. Just as when learning any other programming language, using Svelte requires getting acquainted with a new syntax, which we'll explore gradually by building each component.

In this chapter, we'll be covering the following topics:

  • Adding the required runtime dependencies and pre-made files that are specific to our journaling app
  • Exploring the templating syntax for Svelte components and how to manage reactivity in components
  • Using bindings...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime