Restructure part1 folder. Completed 1.1

This commit is contained in:
2021-08-26 12:10:56 +07:00
parent ed880b31b6
commit c28ba15357
54 changed files with 1 additions and 16906 deletions
Vendored
BIN
View File
Binary file not shown.
@@ -1 +0,0 @@
{"version":3,"sources":["App.js","index.js"],"names":["Header","props","course","Content","part","excercise","Total","exercises","App","ReactDOM","render","document","getElementById"],"mappings":"yIAsBMA,EAAS,SAACC,GACd,OACE,6BAAKA,EAAMC,UAITC,EAAU,SAACF,GACf,OACE,8BACE,8BAAIA,EAAMG,KAAV,IAAiBH,EAAMI,gBAMvBC,EAAQ,SAACL,GACb,OACE,qDAAwBA,EAAMM,UAAU,GAAKN,EAAMM,UAAU,GAAKN,EAAMM,UAAU,OAKvEC,EA1CH,WASV,OACE,gCACE,cAAC,EAAD,CAAQN,OAVG,uCAWX,cAAC,EAAD,CAASE,KAVC,wBAUYC,UATP,KAUf,cAAC,EAAD,CAASD,KATC,2BASYC,UARP,IASf,cAAC,EAAD,CAASD,KARC,uBAQYC,UAPP,KAQf,cAAC,EAAD,CAAOE,UAAW,CAZH,GAEA,EAEA,UCNrBE,IAASC,OACP,cAAC,EAAD,IACAC,SAASC,eAAe,W","file":"static/js/main.04eb9072.chunk.js","sourcesContent":["import React from 'react'\r\n\r\nconst App = () => {\r\n const course = 'Half Stack application development'\r\n const part1 = 'Fundamentals of React'\r\n const exercises1 = 10\r\n const part2 = 'Using props to pass data'\r\n const exercises2 = 7\r\n const part3 = 'State of a component'\r\n const exercises3 = 14\r\n\r\n return (\r\n <div>\r\n <Header course={course} />\r\n <Content part={part1} excercise={exercises1} />\r\n <Content part={part2} excercise={exercises2} />\r\n <Content part={part3} excercise={exercises3} />\r\n <Total exercises={[exercises1, exercises2, exercises3]} />\r\n </div>\r\n )\r\n}\r\n\r\nconst Header = (props) => {\r\n return (\r\n <h1>{props.course}</h1>\r\n )\r\n}\r\n\r\nconst Content = (props) => {\r\n return (\r\n <div>\r\n <p>{props.part} {props.excercise}</p>\r\n </div>\r\n \r\n )\r\n}\r\n\r\nconst Total = (props) => {\r\n return (\r\n <p>Number of exercises {props.exercises[0] + props.exercises[1] + props.exercises[2]}</p>\r\n //<p>1</p>\r\n )\r\n}\r\n\r\nexport default App","import ReactDOM from 'react-dom'\r\nimport App from './App'\r\n\r\nReactDOM.render(\r\n <App />, \r\n document.getElementById('root')\r\n)"],"sourceRoot":""}
-70
View File
@@ -1,70 +0,0 @@
# Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
If you arent satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.
You dont have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
-17
View File
@@ -1,17 +0,0 @@
{
"files": {
"main.js": "/static/js/main.663018b4.chunk.js",
"main.js.map": "/static/js/main.663018b4.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.ed7534be.js",
"runtime-main.js.map": "/static/js/runtime-main.ed7534be.js.map",
"static/js/2.4c95941e.chunk.js": "/static/js/2.4c95941e.chunk.js",
"static/js/2.4c95941e.chunk.js.map": "/static/js/2.4c95941e.chunk.js.map",
"index.html": "/index.html",
"static/js/2.4c95941e.chunk.js.LICENSE.txt": "/static/js/2.4c95941e.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.ed7534be.js",
"static/js/2.4c95941e.chunk.js",
"static/js/main.663018b4.chunk.js"
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

-1
View File
@@ -1 +0,0 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var i=t[f];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var f=this["webpackJsonp1.1"]=this["webpackJsonp1.1"]||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var a=0;a<f.length;a++)r(f[a]);var p=i;t()}([])</script><script src="/static/js/2.4c95941e.chunk.js"></script><script src="/static/js/main.663018b4.chunk.js"></script></body></html>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

-25
View File
@@ -1,25 +0,0 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
-3
View File
@@ -1,3 +0,0 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
File diff suppressed because one or more lines are too long
@@ -1,41 +0,0 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
File diff suppressed because one or more lines are too long
@@ -1,2 +0,0 @@
(this["webpackJsonp1.1"]=this["webpackJsonp1.1"]||[]).push([[0],{9:function(e,s,t){"use strict";t.r(s);var c=t(3),r=t.n(c),n=(t(1),t(0)),i=function(e){return Object(n.jsx)("h1",{children:e.course})},x=function(e){return Object(n.jsxs)("div",{children:[Object(n.jsx)(a,{part:e.part[0],exercises:e.exercises[0]}),Object(n.jsx)(a,{part:e.part[2],exercises:e.exercises[1]}),Object(n.jsx)(a,{part:e.part[2],exercises:e.exercises[2]})]})},a=function(e){return Object(n.jsxs)("p",{children:[e.part," ",e.exercises]})},j=function(e){return Object(n.jsxs)("p",{children:["Number of exercises ",e.exercises[0]+e.exercises[1]+e.exercises[2]]})},o=function(){return Object(n.jsxs)("div",{children:[Object(n.jsx)(i,{course:"Half Stack application development"}),Object(n.jsx)(x,{part:["Fundamentals of React","Using props to pass data","State of a component"],exercises:[10,7,14]}),Object(n.jsx)(j,{exercises:[10,7,14]})]})};r.a.render(Object(n.jsx)(o,{}),document.getElementById("root"))}},[[9,1,2]]]);
//# sourceMappingURL=main.663018b4.chunk.js.map
@@ -1 +0,0 @@
{"version":3,"sources":["App.js","index.js"],"names":["Header","props","course","Content","part","exercises","Part","Total","App","ReactDOM","render","document","getElementById"],"mappings":"yIAoBMA,EAAS,SAACC,GACd,OACE,6BAAKA,EAAMC,UAITC,EAAU,SAACF,GACf,OACE,gCACE,cAAC,EAAD,CAAMG,KAAMH,EAAMG,KAAK,GAAIC,UAAWJ,EAAMI,UAAU,KACtD,cAAC,EAAD,CAAMD,KAAMH,EAAMG,KAAK,GAAIC,UAAWJ,EAAMI,UAAU,KACtD,cAAC,EAAD,CAAMD,KAAMH,EAAMG,KAAK,GAAIC,UAAWJ,EAAMI,UAAU,SAMtDC,EAAO,SAACL,GACZ,OACE,8BAAIA,EAAMG,KAAV,IAAiBH,EAAMI,cAIrBE,EAAQ,SAACN,GACb,OACE,qDAAwBA,EAAMI,UAAU,GAAKJ,EAAMI,UAAU,GAAKJ,EAAMI,UAAU,OAKvEG,EAhDH,WASV,OACE,gCACE,cAAC,EAAD,CAAQN,OAVG,uCAWX,cAAC,EAAD,CAASE,KAAM,CAVL,wBAEA,2BAEA,wBAM0BC,UAAW,CAThC,GAEA,EAEA,MAMf,cAAC,EAAD,CAAOA,UAAW,CAVH,GAEA,EAEA,UCNrBI,IAASC,OACP,cAAC,EAAD,IACAC,SAASC,eAAe,W","file":"static/js/main.663018b4.chunk.js","sourcesContent":["import React from 'react'\r\n\r\nconst App = () => {\r\n const course = 'Half Stack application development'\r\n const part1 = 'Fundamentals of React'\r\n const exercises1 = 10\r\n const part2 = 'Using props to pass data'\r\n const exercises2 = 7\r\n const part3 = 'State of a component'\r\n const exercises3 = 14\r\n\r\n return (\r\n <div>\r\n <Header course={course} />\r\n <Content part={[part1,part2,part3]} exercises={[exercises1, exercises2, exercises3]} />\r\n <Total exercises={[exercises1, exercises2, exercises3]} />\r\n </div>\r\n )\r\n}\r\n\r\nconst Header = (props) => {\r\n return (\r\n <h1>{props.course}</h1>\r\n )\r\n}\r\n\r\nconst Content = (props) => {\r\n return (\r\n <div>\r\n <Part part={props.part[0]} exercises={props.exercises[0]} />\r\n <Part part={props.part[2]} exercises={props.exercises[1]} />\r\n <Part part={props.part[2]} exercises={props.exercises[2]} />\r\n </div>\r\n \r\n )\r\n}\r\n\r\nconst Part = (props) => {\r\n return (\r\n <p>{props.part} {props.exercises}</p>\r\n )\r\n}\r\n\r\nconst Total = (props) => {\r\n return (\r\n <p>Number of exercises {props.exercises[0] + props.exercises[1] + props.exercises[2]}</p>\r\n //<p>1</p>\r\n )\r\n}\r\n\r\nexport default App","import ReactDOM from 'react-dom'\r\nimport App from './App'\r\n\r\nReactDOM.render(\r\n <App />, \r\n document.getElementById('root')\r\n)"],"sourceRoot":""}
@@ -1,2 +0,0 @@
!function(e){function r(r){for(var n,l,f=r[0],i=r[1],a=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var i=t[f];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var f=this["webpackJsonp1.1"]=this["webpackJsonp1.1"]||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var a=0;a<f.length;a++)r(f[a]);var p=i;t()}([]);
//# sourceMappingURL=runtime-main.ed7534be.js.map
File diff suppressed because one or more lines are too long
-16558
View File
File diff suppressed because it is too large Load Diff
-38
View File
@@ -1,38 +0,0 @@
{
"name": "1.1",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

-43
View File
@@ -1,43 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

-25
View File
@@ -1,25 +0,0 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
-3
View File
@@ -1,3 +0,0 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
-51
View File
@@ -1,51 +0,0 @@
import React from 'react'
const App = () => {
const course = 'Half Stack application development'
const part1 = 'Fundamentals of React'
const exercises1 = 10
const part2 = 'Using props to pass data'
const exercises2 = 7
const part3 = 'State of a component'
const exercises3 = 14
return (
<div>
<Header course={course} />
<Content part={[part1,part2,part3]} exercises={[exercises1, exercises2, exercises3]} />
<Total exercises={[exercises1, exercises2, exercises3]} />
</div>
)
}
const Header = (props) => {
return (
<h1>{props.course}</h1>
)
}
const Content = (props) => {
return (
<div>
<Part part={props.part[0]} exercises={props.exercises[0]} />
<Part part={props.part[2]} exercises={props.exercises[1]} />
<Part part={props.part[2]} exercises={props.exercises[2]} />
</div>
)
}
const Part = (props) => {
return (
<p>{props.part} {props.exercises}</p>
)
}
const Total = (props) => {
return (
<p>Number of exercises {props.exercises[0] + props.exercises[1] + props.exercises[2]}</p>
//<p>1</p>
)
}
export default App
-13
View File
@@ -1,13 +0,0 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
-7
View File
@@ -1,7 +0,0 @@
import ReactDOM from 'react-dom'
import App from './App'
ReactDOM.render(
<App />,
document.getElementById('root')
)

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

@@ -0,0 +1 @@
{"version":3,"sources":["App.js","index.js"],"names":["Header","props","course","Content","part","excercise","Total","exercises","App","ReactDOM","render","document","getElementById"],"mappings":"yIAsBMA,EAAS,SAACC,GACd,OACE,6BAAKA,EAAMC,UAITC,EAAU,SAACF,GACf,OACE,8BACE,8BAAIA,EAAMG,KAAV,IAAiBH,EAAMI,gBAMvBC,EAAQ,SAACL,GACb,OACE,qDAAwBA,EAAMM,UAAU,GAAKN,EAAMM,UAAU,GAAKN,EAAMM,UAAU,OAKvEC,EA1CH,WASV,OACE,gCACE,cAAC,EAAD,CAAQN,OAVG,uCAWX,cAAC,EAAD,CAASE,KAVC,wBAUYC,UATP,KAUf,cAAC,EAAD,CAASD,KATC,2BASYC,UARP,IASf,cAAC,EAAD,CAASD,KARC,uBAQYC,UAPP,KAQf,cAAC,EAAD,CAAOE,UAAW,CAZH,GAEA,EAEA,UCNrBE,IAASC,OACP,cAAC,EAAD,IACAC,SAASC,eAAe,W","file":"static/js/main.04eb9072.chunk.js","sourcesContent":["import React from 'react'\n\nconst App = () => {\n const course = 'Half Stack application development'\n const part1 = 'Fundamentals of React'\n const exercises1 = 10\n const part2 = 'Using props to pass data'\n const exercises2 = 7\n const part3 = 'State of a component'\n const exercises3 = 14\n\n return (\n <div>\n <Header course={course} />\n <Content part={part1} excercise={exercises1} />\n <Content part={part2} excercise={exercises2} />\n <Content part={part3} excercise={exercises3} />\n <Total exercises={[exercises1, exercises2, exercises3]} />\n </div>\n )\n}\n\nconst Header = (props) => {\n return (\n <h1>{props.course}</h1>\n )\n}\n\nconst Content = (props) => {\n return (\n <div>\n <p>{props.part} {props.excercise}</p>\n </div>\n \n )\n}\n\nconst Total = (props) => {\n return (\n <p>Number of exercises {props.exercises[0] + props.exercises[1] + props.exercises[2]}</p>\n //<p>1</p>\n )\n}\n\nexport default App","import ReactDOM from 'react-dom'\nimport App from './App'\n\nReactDOM.render(\n <App />, \n document.getElementById('root')\n)"],"sourceRoot":""}

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB