File tree Expand file tree Collapse file tree 7 files changed +130
-0
lines changed Expand file tree Collapse file tree 7 files changed +130
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "responsive-preview" : {
3
+ "Mobile" : [
4
+ 320 ,
5
+ 675
6
+ ],
7
+ "Tablet" : [
8
+ 1024 ,
9
+ 765
10
+ ],
11
+ "Desktop" : [
12
+ 1400 ,
13
+ 800
14
+ ],
15
+ "Desktop HD" : [
16
+ 1920 ,
17
+ 1080
18
+ ]
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " react-typescript" ,
3
+ "version" : " 1.0.0" ,
4
+ "description" : " React and TypeScript example starter project" ,
5
+ "keywords" : [
6
+ " typescript" ,
7
+ " react" ,
8
+ " starter"
9
+ ],
10
+ "main" : " src/index.tsx" ,
11
+ "dependencies" : {
12
+ "react" : " 17.0.2" ,
13
+ "react-dom" : " 17.0.2" ,
14
+ "react-scripts" : " 4.0.0"
15
+ },
16
+ "devDependencies" : {
17
+ "@types/react" : " 17.0.0" ,
18
+ "@types/react-dom" : " 17.0.0" ,
19
+ "typescript" : " 4.1.3"
20
+ },
21
+ "scripts" : {
22
+ "start" : " react-scripts start" ,
23
+ "build" : " react-scripts build" ,
24
+ "test" : " react-scripts test --env=jsdom" ,
25
+ "eject" : " react-scripts eject"
26
+ },
27
+ "browserslist" : [
28
+ " >0.2%" ,
29
+ " not dead" ,
30
+ " not ie <= 11" ,
31
+ " not op_mini all"
32
+ ]
33
+ }
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+
4
+ < head >
5
+ < meta charset ="utf-8 ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1, shrink-to-fit=no ">
7
+ < meta name ="theme-color " content ="#000000 ">
8
+ <!--
9
+ manifest.json provides metadata used when your web app is added to the
10
+ homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
11
+ -->
12
+ < link rel ="manifest " href ="%PUBLIC_URL%/manifest.json ">
13
+ < link rel ="shortcut icon " href ="%PUBLIC_URL%/favicon.ico ">
14
+ <!--
15
+ Notice the use of %PUBLIC_URL% in the tags above.
16
+ It will be replaced with the URL of the `public` folder during the build.
17
+ Only files inside the `public` folder can be referenced from the HTML.
18
+
19
+ Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
20
+ work correctly both with client-side routing and a non-root public URL.
21
+ Learn how to configure a non-root public URL by running `npm run build`.
22
+ -->
23
+ < title > React App</ title >
24
+ </ head >
25
+
26
+ < body >
27
+ < noscript >
28
+ You need to enable JavaScript to run this app.
29
+ </ noscript >
30
+ < div id ="root "> </ div >
31
+ <!--
32
+ This HTML file is a template.
33
+ If you open it directly in the browser, you will see an empty page.
34
+
35
+ You can add webfonts, meta tags, or analytics to this file.
36
+ The build step will place the bundled scripts into the <body> tag.
37
+
38
+ To begin the development, run `npm start` or `yarn start`.
39
+ To create a production bundle, use `npm run build` or `yarn build`.
40
+ -->
41
+ </ body >
42
+
43
+ </ html >
Original file line number Diff line number Diff line change
1
+ import "./styles.css" ;
2
+
3
+ export default function App ( ) {
4
+ return (
5
+ < div className = "App" >
6
+ < h1 > Hello CodeSandbox</ h1 >
7
+ < h2 > Start editing to see some magic happen!</ h2 >
8
+ </ div >
9
+ ) ;
10
+ }
Original file line number Diff line number Diff line change
1
+ import { render } from "react-dom" ;
2
+
3
+ import App from "./App" ;
4
+
5
+ const rootElement = document . getElementById ( "root" ) ;
6
+ render ( < App /> , rootElement ) ;
Original file line number Diff line number Diff line change
1
+ .App {
2
+ font-family : sans-serif;
3
+ text-align : center;
4
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "include" : [
3
+ " ./src/**/*"
4
+ ],
5
+ "compilerOptions" : {
6
+ "strict" : true ,
7
+ "esModuleInterop" : true ,
8
+ "lib" : [
9
+ " dom" ,
10
+ " es2015"
11
+ ],
12
+ "jsx" : " react-jsx"
13
+ }
14
+ }
You can’t perform that action at this time.
0 commit comments