Skip to content

Commit 8ba3b0b

Browse files
committed
Stripped out boilerplate and created folder structure
1 parent 75ae2fb commit 8ba3b0b

File tree

14 files changed

+17
-166
lines changed

14 files changed

+17
-166
lines changed

.gitignore

-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
41
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# testing
9-
/coverage
10-
11-
# production
12-
/build
13-
14-
# misc
15-
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
20-
21-
npm-debug.log*
22-
yarn-debug.log*
23-
yarn-error.log*

public/index.html

+2-27
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,12 @@
77
<meta name="theme-color" content="#000000" />
88
<meta
99
name="description"
10-
content="Web site created using create-react-app"
10+
content="Introduction to React 2"
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-
-->
27-
<title>React App</title>
12+
<title>Introduction to React 2</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-
-->
4217
</body>
4318
</html>

public/logo512.png

-9.44 KB
Binary file not shown.

public/manifest.json

-25
This file was deleted.

public/robots.txt

-3
This file was deleted.

src/App.css

-38
This file was deleted.

src/App.js

-25
This file was deleted.
File renamed without changes.

src/components/App.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import '../styles/app.css';
2+
3+
function App() {
4+
return (
5+
<div className="app">
6+
App component
7+
</div>
8+
);
9+
}
10+
11+
export default App;

src/index.css

-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,3 @@ body {
66
-webkit-font-smoothing: antialiased;
77
-moz-osx-font-smoothing: grayscale;
88
}
9-
10-
code {
11-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12-
monospace;
13-
}

src/index.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom/client';
33
import './index.css';
4-
import App from './App';
5-
import reportWebVitals from './reportWebVitals';
4+
import App from './components/App';
65

76
const root = ReactDOM.createRoot(document.getElementById('root'));
87
root.render(
98
<React.StrictMode>
109
<App />
1110
</React.StrictMode>
1211
);
13-
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();

src/logo.svg

-1
This file was deleted.

src/reportWebVitals.js

-13
This file was deleted.

src/styles/app.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.app {
2+
text-align: center;
3+
}

0 commit comments

Comments
 (0)