Module

React.Router.Routing

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

#runRouter Source

runRouter :: forall arg props. RoutePropsClass props arg => String -> 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.

#matchRouter Source

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