Book description
Imagine web apps with fast browser load times that also offer amazing developer productivity and require less code to create. That's what Svelte and Sapper deliver! Svelte pushes a lot of the work a frontend framework would handle to the compile step, so your app components come out as tight, well-organized JavaScript modules. Sapper is a lightweight web framework that minimizes application size through server-rendering front pages and only loading the JavaScript you need. The end result is more efficient apps with great UX and simplified state management.About the Technology
Many web frameworks load hundreds of “just-in-case” code lines that clutter and slow your apps. Svelte, an innovative, developer-friendly tool, instead compiles applications to very small bundles for lightning-fast load times that do more with less code. Pairing Svelte with the Sapper framework adds features for flexible and simple page routing, server-side rendering, static site development, and more.
About the Book
Svelte and Sapper in Action teaches you to design and build fast, elegant web applications. You'll start immediately by creating an engaging Travel Packing app as you learn to create Svelte components and develop great UX. You'll master Svelte's unique state management model, use Sapper for simplified page routing, and take on modern best practices like code splitting, offline support, and server-rendered views.
What's Inside
- Creating Svelte components
- Using stores for shared data
- Configuring page routing
- Debugging, testing, and deploying Svelte apps
- Using Sapper for dynamic and static sites
About the Reader
For web developers familiar with HTML, CSS, and JavaScript.
About the Author
Mark Volkmann is a partner at Object Computing, where he has provided software consulting and training since 1996.
Quotes
This is a great book—very thorough! I highly recommend it for anyone looking to learn Svelte and Sapper or just looking for alternatives to React and Vue.
- Robert Walsh, Excalibur Solutions
This is the book on Svelte and Sapper. This book will give you expert knowledge on how to write efficient web apps that your users will love.
- Gustavo Filipe Ramos Gomes, Brightcove
Finding a book about Svelte is still rare, as it is such a new technology, but this one is a real gem. It is useful for both beginners and advanced users.
- Sander Zegveld, Developers.nl
Table of contents
- Svelte and Sapper in Action
- Copyright
- brief contents
- contents
- front matter
- Part 1. Getting Started
- 1 Meet the players
- 2 Your first Svelte app
- Part 2. Deeper into Svelte
-
3 Creating components
- 3.1 Content of .svelte files
- 3.2 Component markup
- 3.3 Component names
- 3.4 Component styles
- 3.5 CSS specificity
- 3.6 Scoped vs. global styles
- 3.7 Using CSS preprocessors
- 3.8 Component logic
- 3.9 Component state
- 3.10 Reactive statements
- 3.11 Module context
- 3.12 Building a custom component
- 3.13 Building the Travel Packing app
- Summary
- 4 Block structures
- 5 Component communication
- 6 Stores
- 7 DOM interactions
- 8 Lifecycle functions
- 9 Client-side routing
-
10 Animation
- 10.1 Easing functions
- 10.2 The svelte/animate package
- 10.3 The svelte/motion package
- 10.4 The svelte/transition package
- 10.5 The fade transition and flip animation
- 10.6 The crossfade transition
- 10.7 The draw transition
- 10.8 Custom transitions
- 10.9 The transition vs. in and out props
- 10.10 Transition events
- 10.11 Building the Travel Packing app
- Summary
- 11 Debugging
- 12 Testing
- 13 Deploying
- 14 Advanced Svelte
- Part 3. Deeper into Sapper
- 15 Your first Sapper app
- 16 Sapper applications
- 17 Sapper server routes
- 18 Exporting static sites with Sapper
- 19 Sapper offline support
- Part 4. Beyond Svelte and Sapper
- 20 Preprocessors
- 21 Svelte Native
- appendixes
-
appendix A. Resources
- A.1 Svelte presentations
- A.2 Svelte resources
- A.3 Framework comparisons
- A.4 Sapper resources
- A.5 Svelte Native resources
- A.6 Svelte GL resources
- A.7 Svelte tools
- A.8 Svelte libraries
- A.9 VS Code resources
- A.10 Learning resources not specific to Svelte
- A.11 Tools not specific to Svelte
- A.12 Libraries not specific to Svelte
- A.13 Assets not specific to Svelte
- appendix B. Calling REST services
- appendix C. MongoDB
- appendix D. ESLint for Svelte
- appendix E. Prettier for Svelte
- appendix F. VS Code
- appendix G. Snowpack
- index
Product information
- Title: Svelte and Sapper in Action
- Author(s):
- Release date: September 2020
- Publisher(s): Manning Publications
- ISBN: 9781617297946
You might also like
book
Svelte 3 Up and Running
Build your first web project using the Svelte framework and deploy it in the cloud with …
video
Svelte.js 3 and Sapper Projects
This course will take you through three core projects to help you build effective, reactive, and …
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …
book
Test-Driven JavaScript Development
Learn JavaScript test-driven development using popular frameworks and tools About This Book Learn the life cycle …