0.1.0 • Published 4 years ago
@tetsuo/elm-ts v0.1.0
(fork of gcanti/elm-ts)
Differences from Elm
- no ports
- decoders are derived from io-ts types
react
instead ofvirtual-dom
(pluggable)Navigation
is based on history
React
import * as React from 'elm-ts/lib/React'
import { render } from 'react-dom'
import * as component from './examples/Counter'
const main = React.program(component.init, component.update, component.view)
React.run(main, dom => render(dom, document.getElementById('app')!))
Todomvc implementation
Examples
- Counter
- Labeled Checkboxes (with a sprinkle of functional optics)
- Task, Time and Option
- Http and Either
- Navigation
Documentation
0.1.0
4 years ago