Developing Web Components with Svelte: Building a Library of Reusable UI Components

Developing Web Components with Svelte: Building a Library of Reusable UI Components

English | 2023 | ISBN: 978-1484290385 | 358 Pages | PDF, EPUB | 10 MB

Leverage the power of Svelte to quickly produce the foundations of a framework-agnostic component library that can extend and develop over time. This is a project-oriented book that simplifies setting up the skeleton of the library and adding components, using little more than a text editor or free software.

You’ll gain a starting baseline that can be used to develop future projects or incorporated into an existing workflow. You’ll take development to the next level and can use this knowledge to create components with any framework, such as React, Angular or Vue.js, not just Svelte. Developing Web Components with Svelte is an excellent resource for getting acquainted with creating and maintaining a component library using a phased approach. It takes the view that you don’t have to create something complex and unwieldy. Instead, you can start building something quickly, then extend it as needs dictate over time, without sacrificing speed or features.

You’ll see how to develop cleaner components in a quick, clear and straightforward way. The components you create in this project can be made available in one of the world’s most extensive component ecosystems to be usable by other frameworks, making them genuinely reusable. In short, Svelte offers plenty of opportunities as it is based on Node.js and JavaScript making Svelte a powerful package to work from.

What You’ll Learn

  • Use the Svelte framework to rapidly create and deploy the foundation of a component library that is versatile and performant
  • Review developing and customizing components based on our needs
  • Work through a real-world project to help solidify skills learned from the book and put them into practice