Skip to content

Commit

Permalink
Merge pull request remix-run#775 from 0x80/patch1
Browse files Browse the repository at this point in the history
Doc update Navigation example
  • Loading branch information
gaearon committed Feb 5, 2015
2 parents e43293d + c2c9069 commit 32d24a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/api/mixins/Navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ var Navigation = require('react-router').Navigation;
React.createClass({
mixins: [Navigation],

whenever: function () {
this.transitionTo('something');
this.replaceWith('something');
this.goBack();
render: function() {
return (
<div onClick={() => this.transitionTo('foo')}>Go to foo</div>
<div onClick={() => this.replaceWith('bar')}>Go to bar without creating a new history entry</div>
<div onClick={() => this.goBack()}>Go back</div>
);
}
});
```

0 comments on commit 32d24a5

Please sign in to comment.