Module
Chapagetti
- Package
- purescript-chapagetti
- Repository
- justinwoo/purescript-chapagetti
#reduxProvider Source
reduxProvider :: forall reactElement action state. Store state action -> reactElement -> reactElement
a Redux Provider element that takes a store
#MapDispatch Source
newtype MapDispatch action props
Newtype helper for mapDispatchToProps
Constructors
MapDispatch (EffectFn1 action Unit -> Record props)
#connect Source
connect :: forall reactComponent props topProps merged dispatchP stateP action state. 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 reactClass reactElement store. Fn2 store reactElement reactClass
- Modules
- Chapagetti