Liking cljdoc? Tell your friends :D
ClojureScript only.

reacl-c-basics.pages.core


gotocljs

(goto path)

Returns an action that causes the browser to go to the given path. Must be emitted from an item below a history-router item.

Returns an action that causes the browser to go to the given
path. Must be emitted from an item below a history-router item.
sourceraw docstring

hrefcljs

(href route & params)

Return an url string for the given route, with arguments for the positional and maybe a map for query params as required by the given route. Note that this is the same as calling the route as a function.

Return an url string for the given route, with arguments for the
positional and maybe a map for query params as required by the given
route. Note that this is the same as calling the route as a function.
sourceraw docstring

html5-history-routercljs

(html5-history-router pages)

An item that renders to one of the pages from the given map of routes to pages, depending on the current browser location, which is monitored for changes. It also handles goto actions emitted from within, modifying the browser history accordingly. A page must be a function taking the arguments the route, returning an item.

An item that renders to one of the pages from the given map of
routes to pages, depending on the current browser location, which is
monitored for changes. It also handles [[goto]] actions emitted from
within, modifying the browser history accordingly. A page must be a
function taking the arguments the route, returning an item.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close