From f5c945df22a883837c35400d7ef60daa79870d03 Mon Sep 17 00:00:00 2001 From: Eric Raio Date: Sun, 24 Jan 2016 23:34:49 -0800 Subject: [PATCH] Fixing typos in Readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9fa8322..b3af4a4 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ class HelloPage extends Component { return Hello world!; } -}; +} // Your route object should contain at least: // - The name of the route (which will become the navigation bar title) @@ -48,7 +48,7 @@ class MyApp extends Component { ); } -}; +} AppRegistry.registerComponent('routerTest', () => MyApp); ``` @@ -77,7 +77,7 @@ class HelloPage extends Component { ); } -}); +} ``` Now, when you click on "Next page please!", it will go to the next page (which in this case is still HelloPage but with a new title). Keep in mind that ```this.props.toRoute()``` needs to be called from one of the top-level routes, therefore, if your link is deeply nested within multiple components, you need to make sure that the action "bubbles up" until it reaches the parent route, which in turn calls ```this.props.toRoute()```.