Skip to content

Commit 326ec83

Browse files
author
Orjiewuru Kingdom
committed
add babel-polyfill and rename compnent
1 parent e081e1e commit 326ec83

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

package-lock.json

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"babel-core": "^6.26.3",
1717
"babel-jest": "^23.4.2",
1818
"babel-loader": "^7.1.5",
19+
"babel-polyfill": "^6.26.0",
1920
"babel-preset-env": "^1.7.0",
2021
"babel-preset-react": "^6.24.1",
2122
"coveralls": "^3.0.2",

src/app/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React from 'react';
22
import Header from './components/Header';
33
import Content from './views/Content';
44

5-
const Main = () => (
5+
const App = () => (
66
<div>
77
<Header />
88
<Content />
99
</div>
1010
);
1111

12-
export default Main;
12+
export default App;

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'babel-polyfill';
12
import React from 'react';
23
import ReactDOM from 'react-dom';
34
import App from './app/App';

0 commit comments

Comments
 (0)