We've learned how to pass data from parent to children, via props, but how about passing data from a parent to all its descendants?
In this video, we are going to take a look at 1 example that we've painstakingly passed data down through props, and see how easily it is to use context to do that.
---
💻 REPL https://svelte.dev/repl/d505073d3d4d4...
🎧 Svelte Tutorial for Beginners • Svelte Tutorial for Beginners
📚 Related Resources
Svelte https://svelte.dev
Svelte REPL https://svelte.dev/repl
Svelte Tutorial - Context API https://svelte.dev/tutorial/context-api
🥰 Support me https://www.buymeacoffee.com/lihautan
🔗 Want to learn more from me? Check out these links:
Twitter: / lihautan
Blog: https://lihautan.com/
Newsletter: https://lihautan.com/newsletter
#svelte #sveltetutorial #sveltebeginner
Thanks for watching 🥰 -- with love, Li Hau