From c2c90695926d67ab50a4f38de9d68f27c76193b7 Mon Sep 17 00:00:00 2001 From: Thijs Koerselman Date: Thu, 5 Feb 2015 10:33:50 +0100 Subject: [PATCH] Doc update Navigation example --- docs/api/mixins/Navigation.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/api/mixins/Navigation.md b/docs/api/mixins/Navigation.md index f0b8964745..44b069db57 100644 --- a/docs/api/mixins/Navigation.md +++ b/docs/api/mixins/Navigation.md @@ -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 ( +
this.transitionTo('foo')}>Go to foo
+
this.replaceWith('bar')}>Go to bar without creating a new history entry
+
this.goBack()}>Go back
+ ); } }); ```