Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes gh-pages 404 issue #179

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
<body>
<div class="container"></div>
</body>
<script src="/bundle.js"></script>
<script src="./bundle.js"></script>
</html>
8 changes: 2 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';

import App from './components/app';
import reducers from './reducers';

const createStoreWithMiddleware = applyMiddleware()(createStore);
import store from './store';

ReactDOM.render(
<Provider store={createStoreWithMiddleware(reducers)}>
<Provider store={store}>
<App />
</Provider>
, document.querySelector('.container'));
6 changes: 6 additions & 0 deletions src/store.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createStore, applyMiddleware } from 'redux';
import reducers from './reducers';

const createStoreWithMiddleware = applyMiddleware()(createStore);

export default createStoreWithMiddleware(reducers);