初始化项目

This commit is contained in:
dengtongyu committed 2018-11-12 17:48:13 +08:00
commit 4ab6cf96c0
38 files changed
+8362

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
{
"template": "react",
"style": "css",
"proxy": {
"/api": "http://localhost:3000"
}
}
@@ -0,0 +1,5 @@
.app {
width: 100%;
height: 100%;
font-size: 16px;
}
@@ -0,0 +1,15 @@
import React, { Component } from 'react';
import './app.css';
class App extends Component {
render() {
return (
<div className="app">
Hello World!
</div>
);
}
}
export default App;
+10
View File
@@ -0,0 +1,10 @@
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
#root {
width: 100%;
height: 100%;
}
+19
View File
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<title>Examples</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
</body>
</html>
+7
View File
@@ -0,0 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));