Crafting Magical Spells Using Svelte's Powerful Reactivity
Joy of Code Joy of Code
30.2K subscribers
12,440 views
618

 Published On May 10, 2024

Abstract and reuse reactive logic across files and components with Svelte runes.

🔴 Patreon:   / joyofcode  
𝕏 Twitter:   / joyofcodedev  
💬 Discord:   / discord  
🔥 Uses: https://www.joyofcode.xyz/uses

🔖 Timestamps

0:00 Intro
0:35 Persisting State Using Local Storage
3:06 Creating A Reusable Local Storage Function
4:35 Moving The Code Outside The Component
5:27 Improving The User Experience With Types
6:34 Creating A Reusable Local Storage Class
9:35 Adding Types To The Local Storage Class
10:23 Using A Factory Function
10:54 Using Get And Set Methods
13:41 Outro

#joyofcode #sveltekit #svelte

show more

Share/Embed