Module

Elmish.Boot

Package
purescript-elmish
Repository
collegevine/purescript-elmish

#BootResult Source

data BootResult

Possible results of mounting the app root to a DOM element

#boot Source

boot :: forall state msg. { def :: ComponentDef Aff msg state, domElementId :: String } -> Effect Unit

Mounts the given UI component to a DOM element with given ID. If the DOM element with given ID doesn't exist, logs to console and returns normally. For a more sophisticated handling of this case, use boot'.

#boot' Source

boot' :: forall state msg. { def :: ComponentDef Aff msg state, domElementId :: String, onViewError :: DispatchError -> Effect Unit } -> Effect BootResult

Mounts the given UI component to a DOM element with given ID