In this episode of Syntax, Scott teaches Wes about Svelte and Sapper — general premise, best practices, and more!
Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.
Build modern JAMStack websites in minutes. Stackbit lets you combine any theme, site generator and CMS without complicated integrations. Join the beta today by visiting stackbit.com/syntaxfm.
03:14 - General premise
07:57 - Svelte 101
10:49 - Stylin’
12:22 - Reactivity
15:55 - Props
The answer is {answer}
20:08 - Template logic
If statements {#if user._id} {/if}
Loops {#each cats as kittens}
Promise tags
...waiting
The number is {number}
{error.message}
23:12 - Events
26:11 - Baked-in goodies
36:39 - Sapper