© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. LibbyDeveloping Web Components with Svelte https://doi.org/10.1007/978-1-4842-9039-2_1

1. Getting Started

Alex Libby1  
(1)
Belper, Derbyshire, UK
 

Let’s suppose for a moment that you’ve spent any time developing with frameworks such as React. In that case, I’m sure you will have come across the principle of creating web components – these self-contained, reusable packages of code that we can drop into any number of projects, with only minor tweaks needed to configure the package for use in your project. Sound familiar?

What if you found yourself creating multiple components and were beginning to reuse them across multiple projects? We could use them individually, ...

Get Developing Web Components with Svelte: Building a Library of Reusable UI Components 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.