Syntax - Tasty Web Development Treats

Scott Teaches Wes Svelte and Sapper

May 20, 2020
Dive into the world of Svelte and Sapper as Scott introduces Wes to their innovative features! Learn how Svelte compiles down to efficient code, easing the development process. Discover the unique reactivity model that simplifies state management and component styling. The duo also explores Sapper's strengths in server-side rendering and routing. Plus, stay tuned for clever tech picks and insights on outdoor solar lighting and lawn care that add a fun twist to the tech talk!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Simplified HTML Attributes

  • Svelte's template language simplifies HTML attribute usage.
  • Directly use {src} in image tags instead of src={src}, reducing redundancy.
INSIGHT

Svelte Reactivity

  • Svelte's reactivity simplifies state management.
  • Updating a variable directly updates the UI, eliminating setState and useEffect.
ADVICE

Using Props in Svelte

  • Export props in child components to define and use them with default values.
  • This simplifies prop usage compared to destructuring in React.
Get the Snipd Podcast app to discover more snips from this episode
Get the app