0.4.0 • Published 6 years ago

ulmen v0.4.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Elm architecture in JavaScript

npm install ulmen

Example

import { ulmen } from 'ulmen'

const runtime = ulmen({
  init: { model: 0 }, // Model is an integer to count
  update(message, state) {
    return { model: state + 1 } // Increment the model
  },
  view(state, dispatch) {
    const keepCounting = window.confirm(`Count is ${state}. Increment?`)
    if (keepCounting) {
      dispatch()
    }
  }
})
runtime.start()
0.4.0

6 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.5

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.0

7 years ago