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:
8181
8282``` js
8383import { bindActionCreators } from ' redux' ;
84- import { connect , provide } from ` react-redux';
84+ import { connect , provide } from ' react-redux' ;
8585
8686// store setup left out... see the Redux documentation for initializing action creators, reducers and the store.
8787
8888// 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+
9192@provide (store)
9293@connect ((state ) => ({ counter: state .counter }))
9394class CounterApp {
You can’t perform that action at this time.
0 commit comments