© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. LibbyPractical Sveltehttps://doi.org/10.1007/978-1-4842-7374-6_2

2. Creating Components

Alex Libby1  
(1)
BELPER, UK
 

Okay, so we have our tools in place and installed our prerequisites. Let’s crack on and build that shop!

First, I want to cover off some of the basics principles around creating components in Svelte.

As I am sure you will already be aware, dozens of frameworks have appeared on the scene like React, Vue, and Angular as examples. With so many appearing, it’s almost impossible to have not heard of at least one.

Question though: What do these frameworks have in common? The answer is that they are component driven; Svelte is no different. This component-based ...

Get Practical Svelte: Create Performant Applications with the Svelte Component Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.