File tree 3 files changed +15
-0
lines changed
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.
51
51
Router .goBack ();
52
52
```
53
53
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');
6
6
exports . goBack = require ( './goBack' ) ;
7
7
exports . replaceWith = require ( './replaceWith' ) ;
8
8
exports . 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