From c9a69b48ee8218af35008eaf2984ef20a49f48fb Mon Sep 17 00:00:00 2001 From: Hilke Heremans Date: Fri, 27 Jan 2017 08:40:26 +0100 Subject: [PATCH] Correct tiny typo (#20) --- docs/guides/Redux-Integration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/Redux-Integration.md b/docs/guides/Redux-Integration.md index 8b82f46..d7292d5 100644 --- a/docs/guides/Redux-Integration.md +++ b/docs/guides/Redux-Integration.md @@ -14,9 +14,9 @@ const appReducer = combineReducers({ ... }); -@connect(state => { +@connect(state => ({ nav: state.nav, -}) +})) class AppWithNavigationState extends React.Component { render() { return ( @@ -43,4 +43,4 @@ class App extends React.Component { Now, your navigation state is stored with redux, and you can fire navigation actions using redux. -When a navigator is given a `navigation` prop, it relinquishes control of the state. So you are now responsible for persisting state, handling deep linking, integrating the back button, etc. \ No newline at end of file +When a navigator is given a `navigation` prop, it relinquishes control of the state. So you are now responsible for persisting state, handling deep linking, integrating the back button, etc.