Book Image

SvelteKit Up and Running

By : Dylan Hildenbrand
Book Image

SvelteKit Up and Running

By: Dylan Hildenbrand

Overview of this book

The JavaScript ecosystem has grown vast, complex, and daunting for newcomers. Fortunately, SvelteKit has emerged, simplifying the process of building JavaScript-based web applications. This book aims to demystify SvelteKit, making it as approachable as it makes web app development. With SvelteKit Up and Running you’ll be introduced to the philosophy and technologies underlying SvelteKit. First, you’ll follow a standard educational programming approach, progressing to a 'Hello World' application. Next, you’ll explore the fundamental routing techniques, data loading management, and user submission, all through real-world scenarios commonly encountered in day-to-day development, before discovering various adapters employed by SvelteKit to seamlessly integrate with diverse environments. You’ll also delve into advanced concepts like dynamic route management, error handling, and leveraging SvelteKit to optimize SEO and accessibility. By the end of this book, you’ll have mastered SvelteKit and will be well-equipped to navigate the complexities of web app development.
Table of Contents (19 chapters)
1
Part 1 – Getting Started with SvelteKit
5
Part 2 – Core Concepts
10
Part 3 – Supplemental Concepts

Compatibility with Existing Standards

Some frameworks attempt to simplify your work as a developer by providing you with tools and functionality to wrap around common tasks, such as making network requests or managing data submitted by forms. While the intentions are noble, this strategy can have unintended consequences. For instance, when learning a new framework, developers have to master all of its intricacies to be effective. Reading about yet another way to make network requests can slow developers down, as time spent reading documentation is time spent not building. It can also prevent code portability. When the code written for application A is specific to framework X, then the code will need to be modified before being reused in application B, which was built with framework Y.

SvelteKit has a solution to this, and that solution is to do nothing. Well, not nothing, but rather than providing you with wrappers and functions that will require you to look up the documentation...