Module
Dispatcher.React 
- Package
- purescript-dispatcher-react
- Repository
- doolse/purescript-dispatcher-react
#getProps Source
getProps :: forall state props m. MonadEffect m => ReactReaderT props state m propsGet the React properties
#getState Source
getState :: forall state props m. MonadEffect m => ReactReaderT props state m stateGet the React state
#modifyState Source
modifyState :: forall state props m. MonadEffect m => (state -> state) -> ReactReaderT props state m UnitModify the React state
#ReactReaderT Source
type ReactReaderT props state m a = ReaderT (ReactThis props state) m aThe type of all React action handling functions
#renderer Source
renderer :: forall state props. ({ props :: props, state :: state } -> ReactElement) -> ReactThis props state -> Effect ReactElementCreate a render function using both props and state
#propsRenderer Source
propsRenderer :: forall state props. (props -> ReactElement) -> ReactThis props state -> Effect ReactElementCreate a render function using just the props
#stateRenderer Source
stateRenderer :: forall state props. (state -> ReactElement) -> ReactThis props state -> Effect ReactElementCreate a render function using just the state
#emptyHandler Source
emptyHandler :: forall m a. Applicative m => a -> m Unitan empty event handler
- Modules
- Dispatcher
- Dispatcher.React