Skip to content

Commit

Permalink
add root component for potential react projects
Browse files Browse the repository at this point in the history
  • Loading branch information
15Dkatz committed Feb 20, 2017
1 parent f1e5f1d commit 8a7ef87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';

ReactDOM.render(
<div>React Application!</div>, document.getElementById('root')
);
1 change: 0 additions & 1 deletion build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link rel="stylesheet" href="./index.css">
</head>
<body>
<!-- add the following div only in the react section -->
<div id="root"></div>
<script src="bundle.js" charset="utf-8"></script>
</body>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
"babel-preset-es2015": "^6.22.0",
"babel-preset-es2016": "^6.22.0",
"babel-preset-es2017": "^6.22.0",
"babel-preset-react": "^6.22.0",
"babel-preset-react": "^6.23.0",
"react": "^15.4.2",
"react-bootstrap": "^0.30.7",
"react-dom": "^15.4.2",
"webpack": "^1.14.0",
"webpack-dev-server": "^1.16.2"
Expand Down

0 comments on commit 8a7ef87

Please sign in to comment.