Skip to content

Commit cd66bc0

Browse files
authoredSep 28, 2017
Merge pull request #8 from slaymance/webpack
Finalize setting up Webpack with simple React components
2 parents 79403fd + 166068e commit cd66bc0

File tree

6 files changed

+1754
-456
lines changed

6 files changed

+1754
-456
lines changed
 

‎client/components/App.jsx

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from 'react';
2+
3+
class App extends React.Component {
4+
constructor() {
5+
super();
6+
}
7+
8+
render() {
9+
return (<div>
10+
App Goes Here
11+
</div>)
12+
}
13+
}
14+
15+
export default App;

‎client/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88

99
<body>
1010
<div id="root"></div>
11+
<script src="./dist/bundle.js"></script>
1112
</body>

‎client/index.jsx

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import App from './components/App.jsx';
2+
import React from 'react';
3+
import ReactDOM from 'react-dom';
4+
5+
ReactDOM.render(<App/>, document.getElementById('root'));

0 commit comments

Comments
 (0)