File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -51,3 +51,16 @@ entry from the browser history.
5151Router .goBack ();
5252```
5353
54+ ### ` makeHref(routeName, params, query) `
55+
56+ Creates an ` href ` to a route. Use this along with ` ActiveState ` when you
57+ need to build components similar to ` Link ` .
58+
59+ #### Example
60+
61+ ``` js
62+ // given a route like this:
63+ < Route name= " user" path= " users/:userId" / >
64+ Router .makeHref (' user' , {userId: 123 }); // "users/123"
65+ ```
66+
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ exports.Routes = require('./Routes');
66exports . goBack = require ( './goBack' ) ;
77exports . replaceWith = require ( './replaceWith' ) ;
88exports . transitionTo = require ( './transitionTo' ) ;
9+ exports . makeHref = require ( './makeHref' ) ;
Original file line number Diff line number Diff line change 1+ module . exports = require ( './modules/helpers/makeHref' ) ;
You can’t perform that action at this time.
0 commit comments