Module

Chameleon.Impl.ReactBasic.Mount

Package
purescript-chameleon-react-basic
Repository
thought2/purescript-chameleon-react-basic

#UI Source

type UI :: (Type -> Type) -> Type -> Type -> Typetype UI html msg sta = { init :: sta, update :: msg -> sta -> sta, view :: sta -> html msg }

#uiToReactComponent Source

uiToReactComponent :: forall msg sta. { onStateChange :: sta -> Effect Unit } -> UI ReactHtml msg sta -> Component (Record ())