Skip to content

Commit

Permalink
Initialize repository
Browse files Browse the repository at this point in the history
  • Loading branch information
wssgcg1213 committed Dec 1, 2016
0 parents commit 4fb1361
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.idea
.happypack
node_modules
dist
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "react-simple",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "ling <[email protected]> (http://zeroling.com/)",
"license": "ISC",
"dependencies": {
"react": "^15.4.1",
"react-dom": "^15.4.1"
}
}
3 changes: 3 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.css {
color: white;
}
12 changes: 12 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>REACT</title>
<link rel="stylesheet" href="/dist/index.css">
</head>
<body>
<div id="react-entry"></div>
<script src="/dist/index.js"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import './index.less'
import './index.scss'
import './index.css'

class App extends Component {
render() {
return (
<p>Hello World1121
<a href="##">hellllllll</a>
</p>
)
}
}

ReactDOM.render(<App />, document.querySelector('#react-entry'))
7 changes: 7 additions & 0 deletions src/index.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#react-entry {
.a {
color: green
}

color: yellow
}
6 changes: 6 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.scss {
color: green;
.y {
position: fixed;
}
}

0 comments on commit 4fb1361

Please sign in to comment.