Summary
In this chapter, we covered an example use case of fetch
and a two-part demonstration showing how URL
and FormData
can be used. While the examples presented here do not represent the full scope of the various Web APIs that you’ll have access to, they should illustrate how simple it is to use them with SvelteKit. If you’re hoping to build applications with SvelteKit, it’s important you become familiar with these modern Web APIs, as they’re used extensively throughout development with SvelteKit. SvelteKit encourages you to lean on that existing knowledge. By doing so, SvelteKit can ship less code to you so that you can ship less code to your users.
In the next chapter, we’ll move away from the background information that is necessary for using SvelteKit and start building something that resembles an application. We’ll cover various routing techniques and how you can build out a consistent user interface across the application.