From 4fb136164223f01e37b34cbe29379b332f0c9372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=93=E5=87=8C?= Date: Thu, 1 Dec 2016 23:33:39 +0800 Subject: [PATCH] Initialize repository --- .gitignore | 4 ++++ package.json | 16 ++++++++++++++++ src/index.css | 3 +++ src/index.html | 12 ++++++++++++ src/index.jsx | 17 +++++++++++++++++ src/index.less | 7 +++++++ src/index.scss | 6 ++++++ 7 files changed, 65 insertions(+) create mode 100644 .gitignore create mode 100644 package.json create mode 100644 src/index.css create mode 100644 src/index.html create mode 100644 src/index.jsx create mode 100644 src/index.less create mode 100644 src/index.scss diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f80b6e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.idea +.happypack +node_modules +dist diff --git a/package.json b/package.json new file mode 100644 index 0000000..b00865c --- /dev/null +++ b/package.json @@ -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 (http://zeroling.com/)", + "license": "ISC", + "dependencies": { + "react": "^15.4.1", + "react-dom": "^15.4.1" + } +} diff --git a/src/index.css b/src/index.css new file mode 100644 index 0000000..f9ce0b2 --- /dev/null +++ b/src/index.css @@ -0,0 +1,3 @@ +.css { + color: white; +} \ No newline at end of file diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..faf1bf6 --- /dev/null +++ b/src/index.html @@ -0,0 +1,12 @@ + + + + + REACT + + + +
+ + + \ No newline at end of file diff --git a/src/index.jsx b/src/index.jsx new file mode 100644 index 0000000..9154947 --- /dev/null +++ b/src/index.jsx @@ -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 ( +

Hello World1121 + hellllllll +

+ ) + } +} + +ReactDOM.render(, document.querySelector('#react-entry')) \ No newline at end of file diff --git a/src/index.less b/src/index.less new file mode 100644 index 0000000..bff5004 --- /dev/null +++ b/src/index.less @@ -0,0 +1,7 @@ +#react-entry { + .a { + color: green + } + + color: yellow +} \ No newline at end of file diff --git a/src/index.scss b/src/index.scss new file mode 100644 index 0000000..eff216c --- /dev/null +++ b/src/index.scss @@ -0,0 +1,6 @@ +.scss { + color: green; + .y { + position: fixed; + } +} \ No newline at end of file