Module

React.Halo.Component

Package
purescript-react-halo
Repository
robertdp/purescript-react-halo

#ComponentSpec Source

type ComponentSpec :: Type -> Type -> Type -> (Type -> Type) -> Typetype ComponentSpec props state action m = { eval :: Lifecycle props action -> HaloM props state action m Unit, initialState :: props -> state, render :: { props :: props, send :: action -> Effect Unit, state :: state } -> JSX }

#component Source

component :: forall props state action. String -> ComponentSpec props state action Aff -> Component props

Build a component by providing a name and a Halo component spec.