Module

React.Halo.Internal.State

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

#HaloState Source

newtype HaloState props state action

The Halo component state used during evaluation.

Constructors

#createInitialState Source

createInitialState :: forall props state action. { eval :: Lifecycle props action -> HaloM props state action Aff Unit, props :: props, state :: state, update :: state -> Effect Unit } -> Effect (HaloState props state action)

Creates a starting HaloState, ready for initialization.

#fresh Source

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

Issue a new identifier, unique to this component.