Module

Chapagetti

Package
purescript-chapagetti
Repository
justinwoo/purescript-chapagetti

#reduxProvider Source

reduxProvider :: forall state action reactElement. Store state action -> reactElement -> reactElement

a Redux Provider element that takes a store

#MapState Source

newtype MapState state props

Newtype helper for mapStateToProps

Constructors

#MapDispatch Source

newtype MapDispatch action props

Newtype helper for mapDispatchToProps

Constructors

#connect Source

connect :: forall state action stateP dispatchP merged topProps props reactComponent. Union stateP dispatchP merged => Union merged topProps props => MapState state stateP -> MapDispatch action dispatchP -> reactComponent (Record props) -> reactComponent (Record topProps)

connect a mapState and mapDispatch to a tree. Use the merged total props for our class, but expose top level props explicitly. Note that this function is Partial because it relies on the upstream component tree having a reduxProvider with the correct state and action types.

#_reduxProvider Source

_reduxProvider :: forall store reactElement reactClass. Fn2 store reactElement reactClass

#_connect Source

_connect :: forall reactComponent mapState mapDispatch origProps props. Fn2 mapState mapDispatch (reactComponent origProps -> reactComponent props)
Modules
Chapagetti