joshburgess/elm-route-craft/1.0.0

Page.Sandbox

Convenience module for creating sandbox pages (state, no commands).

import Page.Sandbox as Sandbox


counterPage =
    Sandbox.page
        { init = \shared -> 0
        , update = \msg model -> model + 1
        , view = \shared model -> Html.text (String.fromInt model)
        }
{ init : shared -> model
, update : msg -> model -> model
, view : shared -> model -> Html msg
}
-> Page shared model msg

Create a sandbox page with local state but no commands. Alias for Page.sandbox.