File tree Expand file tree Collapse file tree 5 files changed +37
-52
lines changed
Section9-React-with-TypeScript/reminders-app Expand file tree Collapse file tree 5 files changed +37
-52
lines changed Original file line number Diff line number Diff line change 1010 "@types/node" : " ^16.18.108" ,
1111 "@types/react" : " ^18.3.5" ,
1212 "@types/react-dom" : " ^18.3.0" ,
13+ "bootstrap" : " ^5.3.3" ,
1314 "react" : " ^18.3.1" ,
1415 "react-dom" : " ^18.3.1" ,
1516 "react-scripts" : " 5.0.1" ,
Original file line number Diff line number Diff line change 1- .App {
2- text-align : center;
3- }
4-
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- }
15-
16- .App-header {
17- background-color : # 282c34 ;
18- min-height : 100vh ;
19- display : flex;
20- flex-direction : column;
21- align-items : center;
22- justify-content : center;
23- font-size : calc (10px + 2vmin );
24- color : white;
25- }
26-
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- }
1+ body {
2+ padding : 20px ;
3+ }
Original file line number Diff line number Diff line change @@ -5,20 +5,7 @@ import './App.css';
55function App ( ) {
66 return (
77 < div className = "App" >
8- < header className = "App-header" >
9- < img src = { logo } className = "App-logo" alt = "logo" />
10- < p >
11- Edit < code > src/App.tsx</ code > and save to reload.
12- </ p >
13- < a
14- className = "App-link"
15- href = "https://reactjs.org"
16- target = "_blank"
17- rel = "noopener noreferrer"
18- >
19- Learn React
20- </ a >
21- </ header >
8+ < button className = "btn btn-primary" > Click Me</ button >
229 </ div >
2310 ) ;
2411}
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom/client' ;
3+ import 'bootstrap/dist/css/bootstrap.css' ;
34import './index.css' ;
45import App from './App' ;
56import reportWebVitals from './reportWebVitals' ;
You can’t perform that action at this time.
0 commit comments