@@ -3,6 +3,9 @@ React Redux Connector
3
3
4
4
Object-oriented React bindings for [ Redux] ( https://github.com/reactjs/redux ) .
5
5
6
+ [ ![ build status] ( https://img.shields.io/travis/akuzko/react-redux-connector/master.svg?style=flat-square )] ( https://travis-ci.org/akuzko/react-redux-connector )
7
+ [ ![ npm version] ( https://img.shields.io/npm/v/react-redux-connector.svg?style=flat-square )] ( https://www.npmjs.com/package/react-redux-connector )
8
+
6
9
## Installation
7
10
8
11
```
@@ -90,7 +93,7 @@ connection components.
90
93
``` js
91
94
import { Connector } from ' react-redux-connector' ;
92
95
import Todos from ' ./Todos' ;
93
- import { get , post , put , destroy } from ' utils ' ;
96
+ import { get , post , put , destroy } from ' your-requests-lib ' ;
94
97
95
98
export default class TodosConnector extends Connector {
96
99
static $connection = Todos;
@@ -225,18 +228,18 @@ routes.
225
228
import { Reductor } from ' react-redux-connector' ;
226
229
import { createStore } from ' redux' ;
227
230
228
- // bellow are Connector components imported
229
- import Profile from ' application/profile ' ;
230
- import { Todos , TodoDetails } from ' application/todos' ;
231
+ import Profile from ' application/ProfileConnector ' ;
232
+ import Todos from ' application/todos/TodosCollector ' ;
233
+ import TodoDetails from ' application/todos/TodoDetailsConnector ' ;
231
234
232
- export default class Routes extends Component {
235
+ export default class App extends Component {
233
236
return (
234
237
< Reductor createStore= {createStore}>
235
238
< Router history= {history}>
236
239
< IndexRedirect to= " /profile" / >
237
240
< Route path= " /profile" component= {Profile} / >
238
241
< Route path= " /todos" component= {Todos} / >
239
- < Route path= " /todos/:id" component= {Todos } / >
242
+ < Route path= " /todos/:id" component= {TodoDetails } / >
240
243
< / Router>
241
244
< / Reductor>
242
245
);
0 commit comments