Module

ReactHocs

Package
purescript-react-hocs
Repository
coot/purescript-react-hocs

Re-exports from ReactHocs.Context

#withContext Source

withContext :: forall ctx props. ReactClass props -> ctx -> ReactClass props

#getFromContext Source

getFromContext :: forall ctx' ctx props' props. WithContextProps props' props ctx' => (ctx -> ctx') -> ReactClass props -> ReactClass props'

#getContext Source

getContext :: forall ctx props' props. WithContextProps props' props ctx => ReactClass props -> ReactClass props'

Re-exports from ReactHocs.Contravariant

#cmapPropsSpec Source

cmapPropsSpec :: forall eff props' props. (props' -> props) -> ReactClass props -> ReactSpec props' Unit eff

You can turn ReactSpec into contravariant functor with this fuction. It returns a ReactSpec, i.e. it will be rendered as statefull react component - unlike cmapProps.

#cmapProps Source

cmapProps :: forall props' props. (props' -> props) -> ReactClass props -> ReactClass props'

Turn ReactClass into contravariant functor It returns a React stateless component

Re-exports from ReactHocs.DisplayName

#setDisplayName Source

setDisplayName :: forall props. String -> ReactClass props -> ReactClass props

#mapDisplayName Source

mapDisplayName :: forall props. (String -> String) -> ReactClass props -> ReactClass props

#getDisplayName Source

getDisplayName :: forall props. ReactClass props -> String