Module

Elmish.Dispatch

Package
purescript-elmish
Repository
collegevine/purescript-elmish

#Dispatch Source

type Dispatch msg = msg -> Effect Unit

A function that a view can use to report messages originating from JS/DOM.

#EventHandler Source

newtype EventHandler event

Type of event handling functions. This is the standard shape of all event handlers on React's built-in components (aka tags) and most third-party components as well. The constructor is intentionally hidden. Use the handle function to create instances of this type.

Instances

#handle Source

handle :: forall event. Dispatch event -> EventHandler event

Create a React event handler from a function event -> Effect Unit.