Module

React.Halo.Hook

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

#HookSpec Source

type HookSpec :: Type -> Type -> Type -> (Type -> Type) -> Typetype HookSpec props state action m = { eval :: Lifecycle props action -> HaloM props state action m Unit, initialState :: state, props :: props }

#UseHalo Source

newtype UseHalo props state action hooks

Constructors

Instances

#useHalo Source

useHalo :: forall props state action. HookSpec props state action Aff -> Hook (UseHalo props state action) (state /\ (action -> Effect Unit))

Run renderless Halo in the current component. This allows Halo to be used with other hooks and other ways of building components.