Skip to content

Commit 156787b

Browse files
committedJan 21, 2018
Update main.js
1 parent 343d61e commit 156787b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/main.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
console.log('Addy React');
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import Counter from './Counter';
4+
5+
document.addEventListener('DOMContentLoaded', function() {
6+
ReactDOM.render(React.createElement(Counter), document.getElementById('mount'));
7+
});

0 commit comments

Comments
 (0)
Please sign in to comment.