diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-13 16:28:45 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-13 16:28:45 +0200 |
commit | b59234e25db8418cd53795ce94dda943e54f8ac1 (patch) | |
tree | 0fae4d0f0fba8330327a834f0ff2b1ce733fc002 /web/src/vendor/react-router/docs/api/Router.md | |
parent | 2842f25b82799315c36a81564619cb5467bff61f (diff) | |
download | mitmproxy-b59234e25db8418cd53795ce94dda943e54f8ac1.tar.gz mitmproxy-b59234e25db8418cd53795ce94dda943e54f8ac1.tar.bz2 mitmproxy-b59234e25db8418cd53795ce94dda943e54f8ac1.zip |
use bowser-installer
Diffstat (limited to 'web/src/vendor/react-router/docs/api/Router.md')
-rw-r--r-- | web/src/vendor/react-router/docs/api/Router.md | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/web/src/vendor/react-router/docs/api/Router.md b/web/src/vendor/react-router/docs/api/Router.md deleted file mode 100644 index ff0a32f7..00000000 --- a/web/src/vendor/react-router/docs/api/Router.md +++ /dev/null @@ -1,65 +0,0 @@ -API: `Router` -============= - -The main export, `Router`, contains several methods that may be used to -navigate around the application. - -```js -// cjs modules -var Router = require('react-router') - -// or global build -window.ReactRouter -``` - -Methods -------- - -### `transitionTo(routeNameOrPath, [params[, query]])` - -Programmatically transition to a new route. - -#### Examples - -```js -Router.transitionTo('user', {id: 10}, {showAge: true}); -Router.transitionTo('about'); -Router.transitionTo('/users/10?showAge=true'); -``` - -### `replaceWith(routeNameOrPath, [params[, query]])` - -Programmatically replace current route with a new route. Does not add an -entry into the browser history. - -#### Examples - -```js -Router.replaceWith('user', {id: 10}, {showAge: true}); -Router.replaceWith('about'); -Router.replaceWith('/users/10?showAge=true'); -``` - -### `goBack()` - -Programmatically go back to the last route and remove the most recent -entry from the browser history. - -#### Example - -```js -Router.goBack(); -``` - -### `makeHref(routeName, params, query)` - -Creates an `href` to a route. Use this along with `ActiveState` when you -need to build components similar to `Link`. - -#### Example - -```js -// given a route like this: -<Route name="user" path="users/:userId"/> -Router.makeHref('user', {userId: 123}); // "users/123" -``` |