Skip to content

Commit 413a5de

Browse files
committed
简化项目结构
1 parent aef27f2 commit 413a5de

File tree

12 files changed

+2
-254
lines changed

12 files changed

+2
-254
lines changed

public/index.html

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,11 @@
55
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
8-
<meta
9-
name="description"
10-
content="Web site created using create-react-app"
11-
/>
12-
<link rel="apple-touch-icon" href="logo192.png" />
13-
<!--
14-
manifest.json provides metadata used when your web app is installed on a
15-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16-
-->
17-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18-
<!--
19-
Notice the use of %PUBLIC_URL% in the tags above.
20-
It will be replaced with the URL of the `public` folder during the build.
21-
Only files inside the `public` folder can be referenced from the HTML.
22-
23-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24-
work correctly both with client-side routing and a non-root public URL.
25-
Learn how to configure a non-root public URL by running `npm run build`.
26-
-->
8+
<meta name="description" content="Web site created using create-react-app" />
279
<title>React App</title>
2810
</head>
2911
<body>
3012
<noscript>You need to enable JavaScript to run this app.</noscript>
3113
<div id="root"></div>
32-
<!--
33-
This HTML file is a template.
34-
If you open it directly in the browser, you will see an empty page.
35-
36-
You can add webfonts, meta tags, or analytics to this file.
37-
The build step will place the bundled scripts into the <body> tag.
38-
39-
To begin the development, run `npm start` or `yarn start`.
40-
To create a production bundle, use `npm run build` or `yarn build`.
41-
-->
4214
</body>
4315
</html>

public/logo192.png

-8.38 KB
Binary file not shown.

public/logo512.png

-22.4 KB
Binary file not shown.

public/manifest.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

public/robots.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/App.css

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/App.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
11
import React from "react";
2-
import logo from "./logo.svg";
3-
import "./App.css";
42

53
function App() {
64
return (
75
<div className="App">
8-
<header className="App-header">
9-
<img src={logo} className="App-logo" alt="logo" />
10-
<p>
11-
Edit
12-
<code>src/App.js</code>
13-
and save to reload.
14-
</p>
15-
{/* <a
16-
className="App-link"
17-
href="https://reactjs.org"
18-
target="_blank"
19-
rel="noopener noreferrer"
20-
>
21-
Learn React
22-
</a> */}
23-
</header>
6+
<h1>This is React App.</h1>
247
</div>
258
);
269
}

src/App.test.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/index.css

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import React from "react";
22
import ReactDOM from "react-dom";
3-
import "./index.css";
43
import App from "./App";
5-
import * as serviceWorker from "./serviceWorker";
64

75
ReactDOM.render(<App />, document.getElementById("root"));
8-
9-
// If you want your app to work offline and load faster, you can change
10-
// unregister() to register() below. Note this comes with some pitfalls.
11-
// Learn more about service workers: https://bit.ly/CRA-PWA
12-
serviceWorker.unregister();

0 commit comments

Comments
 (0)