Created
May 30, 2019 21:40
-
-
Save nanotroy/8c8b330e3c2f92bde8a01308ec1b1f86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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