Skip to content

Commit

Permalink
added redux
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenGrider committed Nov 25, 2015
1 parent f71dda3 commit 246b131
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
10 changes: 10 additions & 0 deletions src/components/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import { Component } from 'react';

export default class App extends Component {
render() {
return (
<div>Sample App</div>
);
}
}
12 changes: 12 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import { Provider } from 'react-redux';
import ReactDOM from 'react-dom';
import { createStore } from 'redux';

import App from './components/app';

ReactDOM.render(
<Provider store={createStore(() => {})}>
<App />
</Provider>
, document.getElementById('container'));
12 changes: 0 additions & 12 deletions src/main.js

This file was deleted.

2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
entry: [
'./src/main.js'
'./src/index.js'
],
output: {
path: __dirname,
Expand Down

0 comments on commit 246b131

Please sign in to comment.