Skip to content

Commit

Permalink
[#208] 🔧chore: add a basic React component without verifying
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanLin-TWer committed Jun 24, 2018
1 parent ef3eb0c commit 1095ff9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"env": {
"jest": true,
"node": true,
"browser": true,
"es6": true
},
"globals":{
"__DEV__": true
"__DEV__": true,
},
"rules": {
"prettier/prettier": "error",
Expand Down
10 changes: 10 additions & 0 deletions src/react/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>React Blog</title>
</head>
<body>
<section id="blog" />
</body>
</html>
6 changes: 6 additions & 0 deletions src/react/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'

const Index = () => <div>hello webpack 4 and babel 7</div>

ReactDOM.render(<Index />, document.getElementById('blog'))

0 comments on commit 1095ff9

Please sign in to comment.