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

Book description

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
Who This Book Is For

  • Website developers, familiar with JavaScript, who are keen to learn how to leverage the Svelte framework fast
  • Agile development teams, wheretime is of the essence, and the pressure is on to deliver results quickly
  • Developers who want to focus on simplicity, to produce efficient and optimized content in modern browsers using tools readily available

Product information

  • Title: Developing Web Components with Svelte: Building a Library of Reusable UI Components
  • Author(s): Alex Libby
  • Release date: February 2023
  • Publisher(s): Apress
  • ISBN: 9781484290392