Skip to content

Commit 32d24a5

Browse files
committed
Merge pull request remix-run#775 from 0x80/patch1
Doc update Navigation example
2 parents e43293d + c2c9069 commit 32d24a5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/api/mixins/Navigation.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ var Navigation = require('react-router').Navigation;
7070
React.createClass({
7171
mixins: [Navigation],
7272

73-
whenever: function () {
74-
this.transitionTo('something');
75-
this.replaceWith('something');
76-
this.goBack();
73+
render: function() {
74+
return (
75+
<div onClick={() => this.transitionTo('foo')}>Go to foo</div>
76+
<div onClick={() => this.replaceWith('bar')}>Go to bar without creating a new history entry</div>
77+
<div onClick={() => this.goBack()}>Go back</div>
78+
);
7779
}
7880
});
7981
```

0 commit comments

Comments
 (0)