Module

React.Router.Routing

Package
purescript-cofree-react-router
Repository
coot/purescript-cofree-react-router

#LeafVal Source

newtype LeafVal props arg

Constructors

Instances

#matchRouter Source

matchRouter :: forall arg props. RoutePropsClass props arg => Route -> Router props arg -> Maybe (Cofree List (LeafVal props arg))

#runRouter' Source

runRouter' :: forall arg props. RoutePropsClass props arg => Route -> Cofree List (Tuple (Route props arg) (Maybe (IndexRoute props arg))) -> Maybe ReactElement

#runRouter Source

runRouter :: forall arg props. RoutePropsClass props arg => URL -> Cofree List (Tuple (Route props arg) (Maybe (IndexRoute props arg))) -> Maybe ReactElement

Main entry point for running Router, it returns ReactElement that can be injected into React vDOM.