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.
Stackbit offers developers tools that enable things like inline content editing, live previewing of content changes, and collaboration features on your Jamstack site, without code changes. That's why Stackbit is the best way to Jamstack. stackbit.com
03:14 - General premise
07:57 - Svelte 101
The answer is {answer}
20:08 - Template logic
If statements
{#if user._id}
{/if}
Loops
{#each cats as kittens}
Promise tags
{#await promise} ...waiting
{:then number} The number is {number}
{:catch error} {error.message}
{/await}
23:12 - Events
26:11 - Baked-in goodies
{text}
36:39 - Sapper
📆 2020-05-18 15:00 / ⌛ 00:14:59
📆 2020-05-13 15:00 / ⌛ 00:48:08
📆 2020-05-11 15:00 / ⌛ 00:28:17
📆 2020-05-06 15:00 / ⌛ 01:01:36
📆 2020-05-04 15:00 / ⌛ 00:13:39