Skip to content

Instantly share code, notes, and snippets.

@nanotroy
Created May 30, 2019 21:40
Show Gist options
  • Save nanotroy/8c8b330e3c2f92bde8a01308ec1b1f86 to your computer and use it in GitHub Desktop.
Save nanotroy/8c8b330e3c2f92bde8a01308ec1b1f86 to your computer and use it in GitHub Desktop.
import { h$map } from '@crui/reactive/elems/$children'
const TodoList = (store: TodoStore) => h$map(
h('ul'),
store.todos,
TodoComponent
)
const TodoComponent = ({ text }) => ht('li', text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment