Module

React.Halo.Internal.State

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

#HaloState Source

newtype HaloState props state action

HThe alo component state used during evaluation.

Constructors

#createInitialState Source

createInitialState :: forall action state props. state -> (Lifecycle props action -> HaloM props state action Aff Unit) -> (state -> Effect Unit) -> props -> Effect (HaloState props state action)

Creates a starting HaloState, ready for initialization.

#fresh Source

fresh :: forall a action state props. (Int -> a) -> HaloState props state action -> Effect a

Issue a new identifier, unique to this component.