Developing Web Components with Svelte: Building a Library of Reusable UI Components
- 3h 38m
- Alex Libby
- Apress
- 2023
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, where time 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
About the Author
Alex Libby is a frontend engineer and seasoned book author who hails from England. His passion for all things Open Source dates back to the days of his degree studies, where he first came across web development and has been hooked ever since. His daily work involves extensive use of React, NodeJS, JavaScript, HTML, and CSS; Alex enjoys tinkering with different open source libraries to see how they work. He has spent a stint maintaining the jQuery Tools library and enjoys writing about Open Source technologies, principally for front end UI development.
In this Book
-
Introduction
-
Getting Started
-
Creating Basic Components
-
Building Action Components
-
Building the Navigation Components
-
Creating Notification Components
-
Creating Grid Components
-
Writing Documentation
-
Documenting More Components
-
Testing Components
-
Deploying to Production
-
Taking Things Further