In this video we'll teach you how to handle HTTP requests in Svelte with the Javascript Fetch API.
We cover the following topics:
00:00 - Intro
00:16 - The Fetch API
01:09 - JSONPlaceholder
01:35 - GET Request
03:48 - Handling loading states
04:24 - Handling a loading state with each..else
05:17 - Handle a loading state with await..then
07:19 - POST request
11:13 - Update requests
11:37 - PUT request
12:58 - PATCH request
13:41 - PUT vs PATCH
14:25 - DELETE request
15:13 - Outro & Next up
This lesson is also available in written format
https://www.koderhq.com/tutorial/svel...
Put vs Patch
https://www.koderhq.com/tutorial/vue/...
Check out the Svelte playlist for more videos
• Svelte for Beginners
Subscribe to the channel and never miss a lesson
/ @koderhq
Visit the website for a wide range of programming tutorials
https://www.koderhq.com