File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,14 @@ using decorators:
81
81
82
82
``` js
83
83
import { bindActionCreators } from ' redux' ;
84
- import { connect , provide } from ` react-redux';
84
+ import { connect , provide } from ' react-redux' ;
85
85
86
86
// store setup left out... see the Redux documentation for initializing action creators, reducers and the store.
87
87
88
88
// Note: you do *not* have to `@provide` every component you `@connect`, but this abritrarily simple example only has
89
- one Smart Component at the top level. A more complete example may have a root level component that is only decorated
90
- with ` @provide` and many smart components decorated with ` @connect` .
89
+ // one Smart Component at the top level. A more complete example may have a root level component that is only decorated
90
+ // with `@provide` and many smart components decorated with `@connect`.
91
+
91
92
@provide (store)
92
93
@connect ((state ) => ({ counter: state .counter }))
93
94
class CounterApp {
You can’t perform that action at this time.
0 commit comments