From 63af52f1b776b2223027c1a73c0f2a725c377666 Mon Sep 17 00:00:00 2001 From: Yuriy Yakym Date: Tue, 15 Jan 2019 16:13:38 +0100 Subject: [PATCH] Update accessing-store.md (#1163) - Consistent indent - Consistent semicolons - Removed endless recurrency from example App component --- docs/using-react-redux/accessing-store.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/using-react-redux/accessing-store.md b/docs/using-react-redux/accessing-store.md index 9ebf55f5a..c7d509d7f 100644 --- a/docs/using-react-redux/accessing-store.md +++ b/docs/using-react-redux/accessing-store.md @@ -47,13 +47,13 @@ export default connect( mapDispatch, null, { context: MyContext } -)(MyComponent) +)(MyComponent); // or, call connect as normal to start const ConnectedComponent = connect( mapState, mapDispatch -)(MyComponent) +)(MyComponent); // Later, pass the custom context as a prop to the connected component @@ -85,13 +85,13 @@ const storeB = createStore(reducerB); // supply the context instances to Provider function App() { - return ( - - - - - - ); + return ( + + + + + + ); } // fetch the corresponding store with connected components @@ -132,7 +132,7 @@ function MyConnectedComponent() { // component where it can be used in lifecycle methods }} - ) + ); } ```