Package Exports
- data
- data/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Reactive Data
Simple Value
const data = $(10)
data.connect(input, 'value')
data[value] = 20
Transforms
const todos = $([
{ task: 'foo', completed: true }
{ task: 'bar', completed: false }
{ task: 'boo', completed: false }
])
const todos.filter('completed', false)
render(document.body, body(
li(remaining, ({ task }) => task)
))
// insert todo
todos.insert({ task: 'baz', completed: false })
// update existing todo
todos[2].completed = true
// delete todo
delete todos[1]