File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ export default connect(
47
47
mapDispatch,
48
48
null ,
49
49
{ context: MyContext }
50
- )(MyComponent)
50
+ )(MyComponent);
51
51
52
52
// or, call connect as normal to start
53
53
const ConnectedComponent = connect (
54
54
mapState,
55
55
mapDispatch
56
- )(MyComponent)
56
+ )(MyComponent);
57
57
58
58
// Later, pass the custom context as a prop to the connected component
59
59
< ConnectedComponent context= {MyContext} / >
@@ -85,13 +85,13 @@ const storeB = createStore(reducerB);
85
85
86
86
// supply the context instances to Provider
87
87
function App () {
88
- return (
89
- < Provider store= {storeA} context= {ContextA} / >
90
- < Provider store= {storeB} context= {ContextB}>
91
- < App / >
92
- < / Provider>
93
- < / Provider>
94
- );
88
+ return (
89
+ < Provider store= {storeA} context= {ContextA} / >
90
+ < Provider store= {storeB} context= {ContextB}>
91
+ < RootModule / >
92
+ < / Provider>
93
+ < / Provider>
94
+ );
95
95
}
96
96
97
97
// fetch the corresponding store with connected components
@@ -132,7 +132,7 @@ function MyConnectedComponent() {
132
132
// component where it can be used in lifecycle methods
133
133
}}
134
134
< / ReactReduxContext .Consumer >
135
- )
135
+ );
136
136
}
137
137
```
138
138
You can’t perform that action at this time.
0 commit comments