Module
Chapagetti
- Package
- purescript-chapagetti
- Repository
- justinwoo/purescript-chapagetti
#reduxProvider Source
reduxProvider :: forall e action state. Store e state action -> ReactElement -> ReactElement
a Redux Provider element that takes a store
#MapDispatch Source
newtype MapDispatch e action props
Newtype helper for mapDispatchToProps
Constructors
MapDispatch (EffFn1 e action Unit -> Record props)
#connect Source
connect :: forall e props topProps merged dispatchP stateP action state. Union stateP dispatchP merged => Union merged topProps props => MapState state stateP -> MapDispatch e action dispatchP -> ReactClass (Record props) -> ReactClass (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 reactClass store. Fn2 store ReactElement reactClass
#_connect Source
_connect :: forall props origProps mapDispatch mapState. Fn2 mapState mapDispatch (ReactClass origProps -> ReactClass props)
- Modules
- Chapagetti