CipherDogs / elm-bitcoin / Bitcoin

Bitcoin price web component made using Elm. Thanks to this extension, you can reflect in your application the current price of bitcoin in dollars.

Use component


type Model

State component

init : () -> ( Model, Platform.Cmd.Cmd Msg )

Сomponent initialization

update : Msg -> Model -> ( Model, Platform.Cmd.Cmd Msg )

Update state


type Msg
    = GotResult (Result Http.Error String)

Msg for HTTP Request

view : Model -> Html Msg

Component display