Skip to content

Commit

Permalink
upgrading to redux 1.0.0-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
hasdavidc committed Jul 25, 2015
1 parent 39f6cb5 commit 057f216
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions containers/App.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import React, { Component } from 'react';
import PokedexApp from './PokedexApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import * as reducers from '../reducers';

const redux = createRedux(stores);
const reducer = combineReducers(reducers);
const store = createStore(reducer);

export default class App extends Component {
render() {
return (
<Provider redux={redux}>
<Provider store={store}>
{() => <PokedexApp />}
</Provider>
);
Expand Down
2 changes: 1 addition & 1 deletion containers/PokedexApp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'redux/react';
import { Connector } from 'react-redux';
import MainSection from '../components/MainSection';
import * as PokemonActions from '../actions/PokemonActions';

Expand Down
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<title>Pokedex in Redux</title>
</head>
<body>
<div class="todoapp" id="root">
</div>
<div id="root"></div>
</body>
<script src="/browser-polyfill.min.js"></script>
<script src="/static/bundle.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"dependencies": {
"classnames": "^2.1.2",
"react": "^0.13.3",
"redux": "^0.12.0"
"react-redux": "^0.2.2",
"redux": "^1.0.0-rc"
},
"devDependencies": {
"babel-core": "^5.5.8",
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 057f216

Please sign in to comment.