Elm-like architecture core for Fable F# apps.
npm install fable-elmishElmish: Elm-like abstractions for F# applications targeting Fable.
=======
Elmish implements core abstractions that can be used to build applications following “model view update” style of architecture, as made famous by Elm.
The library however does not model any "view" and is intended for use in conjuction with a DOM/renderer, like React/ReactNative or VirtualDOM.
For those familiar with Redux, the Fable applications targeting React or ReactNative may find Elmish a more natural fit than Redux allowing one to stay completely in idiomatic F#.
Elmish abstractions have been carefully designed to resemble Elm's "look and feel" and anyone familiar with post-Signal Elm terminology will find themselves at right home.
``shell`
npm install --save fable-core fable-powerpack fable-elmish
Add a reference to the assemblies in the package folders (e.g. node_modules/fable-elmish/Fable.Elmish.dll).
to carry out both DOM construction and DOM rendering.
Usage:
`fsharp
open ElmishProgram.mkProgram init update view
|> Program.run
`Async: schedule a command transforming the results of an
async<_> function
Usage:
`fsharp
open ElmishCmd.ofAsync asyncFunction arg ofSuccess ofError
`Promise: schedule a command transforming the results of a
promise<_> function
Usage:
`fsharp
open ElmishCmd.ofPromise promiseFunction arg ofSuccess ofError
`Result: Ok/Error type and operators.
> This type is standard in F# 4.1 and will be removed from this lib when MS releases it.Usage:
`fsharp
open Elmish`UrlParser: Combinator for parsing browser's location url
Usage:
`fsharp
open Elmish.UrlParser
`Navigation: Integrate with browser's location and history
Usage:
`fsharp
open Elmish.Browser.NavigationProgram.mkProgram init update view
|> Program.toNavigable parser urlUpdate
|> Program.run
``