@@ -3,6 +3,9 @@ React Redux Connector
33
44Object-oriented React bindings for [ Redux] ( https://github.com/reactjs/redux ) .
55
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+
69## Installation
710
811```
@@ -90,7 +93,7 @@ connection components.
9093``` js
9194import { Connector } from ' react-redux-connector' ;
9295import Todos from ' ./Todos' ;
93- import { get , post , put , destroy } from ' utils ' ;
96+ import { get , post , put , destroy } from ' your-requests-lib ' ;
9497
9598export default class TodosConnector extends Connector {
9699 static $connection = Todos;
@@ -225,18 +228,18 @@ routes.
225228import { Reductor } from ' react-redux-connector' ;
226229import { createStore } from ' redux' ;
227230
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 ' ;
231234
232- export default class Routes extends Component {
235+ export default class App extends Component {
233236 return (
234237 < Reductor createStore= {createStore}>
235238 < Router history= {history}>
236239 < IndexRedirect to= " /profile" / >
237240 < Route path= " /profile" component= {Profile} / >
238241 < Route path= " /todos" component= {Todos} / >
239- < Route path= " /todos/:id" component= {Todos } / >
242+ < Route path= " /todos/:id" component= {TodoDetails } / >
240243 < / Router>
241244 < / Reductor>
242245 );
0 commit comments