Collection of strict mode / `<template>` demos of various concepts

I’ve been writing a lot of demos lately in the REPL I’ve been working on, https://limber.glimdown.com

This post will be a collection of demos I’ve used in response to questions from various community members – for the purpose of finding these again easily, and maybe other folks will f ind them useful as well.

Effects

  • calling a function once
  • calling a function in response to arg changes
  • an effect that relies on auto-tracking to re-run

demos

Loading Remote Data

  • shows how to use loading state
  • keeps the UI stable while new data is loaded / refresh

Demos:

Forms / Inputs

Resources

  • Clock - encapsulated state and providing a single reactive value.

Rendering

4 Likes