Loading video player...
In Part 16 of the SvelteKit course, we take a break from Server Actions to master Client-Side Form Handling. While SvelteKit's server features are powerful, sometimes you need to build a Single Page Application (SPA) or connect directly to an external API like Firebase or a headless CMS. In this video, we build a complete newsletter subscription form using Svelte 5 Runes. We start with basic state binding, add robust schema validation, and implement real-time feedback. ------------------------------------------------------------------------------------- š What we cover: Basic Submission: replacing action with onsubmit and preventing default browser behavior. State Management: Using $state for two-way data binding. Validation: Integrating Zod for robust schema validation. Real-time UX: Using $effect to show error messages instantly as the user types. API Integration: Sending data to an external API using fetch. ------------------------------------------------------------------------------------- Chapters: - 00:00 Intro 00:32 Basic Client-Side Submission 02:54 Client-Side Validation 04:53 Real-Time Validation 06:39 API Integration ------------------------------------------------------------------------------------- Support Me: - Patreon: https://www.patreon.com/c/CodeHubOfficial ------------------------------------------------------------------------------------- Related Videos: 1. Custom Role Based Authentication In Asp.net Core MVC Application - Complete Tutorial: https://youtu.be/p6X-dDx6nQY 2. Create Custom Login, Registration, Email Verify And Forgot Password Pages In Asp.Net Core MVC App: https://youtu.be/hthzKj05w3w 3. Create Role Based User Management API Using Dynamic Policies In Asp.Net Core Web API: https://youtu.be/beIEysfQxGo 4. Create Role Based User Management App In Flutter With Asp.Net Core Web API as Backend From Scratch: https://youtu.be/Jdil0z11HG4 5. Create Wallpaper App In Flutter From Scratch Using Pexels API [Complete Tutorial]: https://youtu.be/c34fAl58NE0 6. Create Camera App From Scratch In Flutter [with Flash, Camera Switching, Multiple Images Functions]: https://youtu.be/j2xMGZ1XcMo 7. Connect Flutter With Asp.Net Core Web API To Run On Emulator & Real Device: https://youtu.be/PAY6TqIEVZI ------------------------------------------------------------------------------------- š¢ Stay Connected: š Like this video if you found it helpful! š£ Share your thoughts or questions in the comments below! š Share this video with your friends. ------------------------------------------------------------------------------------- Join WhatsApp Channel: https://whatsapp.com/channel/0029VaE0W6HA2pLH5dN39n36 Facebook Page Link: https://www.facebook.com/Free_Trained Facebook Group Link: https://www.facebook.com/groups/1746009532359857/ Please Subscribe Our YouTube Channel For More interesting Videos And Don't Forget To Share Our Channel With Your Friends. Note: *Please Turn Off Any Ad Blocker Software or add-on to support us.