Skip to content

Commit 4e1eb4b

Browse files
react-1 udpated
1 parent a35c5ca commit 4e1eb4b

File tree

13 files changed

+21
-123
lines changed

13 files changed

+21
-123
lines changed

public/favicon.ico

-3.78 KB
Binary file not shown.

public/index.html

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,10 @@
99
name="description"
1010
content="Web site created using create-react-app"
1111
/>
12-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/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-
-->
2712
<title>React App</title>
2813
</head>
2914
<body>
3015
<noscript>You need to enable JavaScript to run this app.</noscript>
3116
<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-
-->
42-
</body>
17+
</body>
4318
</html>

public/logo192.png

-5.22 KB
Binary file not shown.

public/logo512.png

-9.44 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 & 3 deletions
This file was deleted.

src/App.css

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
text-align: center;
33
}
44

5-
.App-logo {
6-
height: 40vmin;
7-
pointer-events: none;
8-
}
9-
10-
@media (prefers-reduced-motion: no-preference) {
11-
.App-logo {
12-
animation: App-logo-spin infinite 20s linear;
13-
}
14-
}
155

166
.App-header {
177
background-color: #282c34;
@@ -24,15 +14,3 @@
2414
color: white;
2515
}
2616

27-
.App-link {
28-
color: #61dafb;
29-
}
30-
31-
@keyframes App-logo-spin {
32-
from {
33-
transform: rotate(0deg);
34-
}
35-
to {
36-
transform: rotate(360deg);
37-
}
38-
}

src/App.js

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
1-
import logo from './logo.svg';
21
import './App.css';
32

43
function App() {
4+
5+
let name = 'react app'
6+
let className = 'App-header';
7+
console.log('App')
8+
return (
9+
<div className="">
10+
<div className={className}>
11+
{name}
12+
<Demo></Demo>
13+
</div>
14+
</div>
15+
);
16+
}
17+
function Demo() {
18+
console.log('Demo')
519
return (
620
<div className="App">
7-
<header className="App-header">
8-
<img src={logo} className="App-logo" alt="logo" />
9-
<p>
10-
Edit <code>src/App.js</code> and save to reload.
11-
</p>
12-
<a
13-
className="App-link"
14-
href="https://reactjs.org"
15-
target="_blank"
16-
rel="noopener noreferrer"
17-
>
18-
Learn React
19-
</a>
20-
</header>
21+
<div className='App-header'>
22+
Demo
23+
</div>
2124
</div>
2225
);
2326
}
2427

28+
29+
2530
export default App;

src/App.test.js

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

src/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import './index.css';
44
import App from './App';
5-
import reportWebVitals from './reportWebVitals';
65

76
const root = ReactDOM.createRoot(document.getElementById('root'));
87
root.render(
@@ -11,7 +10,3 @@ root.render(
1110
</React.StrictMode>
1211
);
1312

14-
// If you want to start measuring performance in your app, pass a function
15-
// to log results (for example: reportWebVitals(console.log))
16-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17-
reportWebVitals();

0 commit comments

Comments
 (0)