├── .gitignore
├── my-app
├── public
│ ├── robots.txt
│ ├── favicon.ico
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── index.html
├── src
│ ├── setupTests.js
│ ├── components
│ │ ├── Loader
│ │ │ ├── Loader.jsx
│ │ │ └── css
│ │ │ │ └── Loader.css
│ │ ├── ToDoList
│ │ │ ├── Tasks.jsx
│ │ │ ├── Task.jsx
│ │ │ ├── AddTask.jsx
│ │ │ ├── View.jsx
│ │ │ └── css
│ │ │ │ └── ToDoList.css
│ │ └── Worker
│ │ │ ├── css
│ │ │ └── List.css
│ │ │ ├── Items.jsx
│ │ │ └── List.jsx
│ ├── App.test.js
│ ├── index.css
│ ├── reportWebVitals.js
│ ├── index.js
│ ├── App.css
│ ├── App.jsx
│ └── logo.svg
├── .gitignore
├── package.json
└── README.md
└── db
└── db.json
/.gitignore:
--------------------------------------------------------------------------------
1 | /my-app/node_modules
2 |
3 |
--------------------------------------------------------------------------------
/my-app/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/my-app/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vlad-web-dev/HW28-js-react/HEAD/my-app/public/favicon.ico
--------------------------------------------------------------------------------
/my-app/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vlad-web-dev/HW28-js-react/HEAD/my-app/public/logo192.png
--------------------------------------------------------------------------------
/my-app/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vlad-web-dev/HW28-js-react/HEAD/my-app/public/logo512.png
--------------------------------------------------------------------------------
/my-app/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/my-app/src/components/Loader/Loader.jsx:
--------------------------------------------------------------------------------
1 | import './css/Loader.css';
2 | export default function Loader () {
3 | return
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/my-app/src/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from '@testing-library/react';
2 | import App from './App';
3 |
4 | test('renders learn react link', () => {
5 | render();
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/my-app/src/components/ToDoList/Tasks.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import Task from "./Task";
3 |
4 | function todoItems({todos, onDelete, onChangeStatus}) {
5 | const items = todos.map((todo, idx) =>
6 |
7 | );
8 | return
9 | }
10 |
11 | export default todoItems
12 |
--------------------------------------------------------------------------------
/my-app/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /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*
24 |
--------------------------------------------------------------------------------
/my-app/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/my-app/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/my-app/src/components/Worker/css/List.css:
--------------------------------------------------------------------------------
1 | /* Center tables for demo */
2 | table {
3 | margin: 0 auto;
4 | }
5 |
6 | /* Default Table Style */
7 | table {
8 | color: #333;
9 | background: white;
10 | border: 1px solid grey;
11 | font-size: 12pt;
12 | border-collapse: collapse;
13 | }
14 | table thead th,
15 | table tfoot th {
16 | color: #777;
17 | background: rgba(0,0,0,.1);
18 | }
19 | table caption {
20 | padding:.5em;
21 | }
22 | table th,
23 | table td {
24 | padding: .5em;
25 | border: 1px solid lightgrey;
26 | }
--------------------------------------------------------------------------------
/db/db.json:
--------------------------------------------------------------------------------
1 | {
2 | "todos": [
3 | {
4 | "title": "sd",
5 | "completed": false,
6 | "id": 1
7 | },
8 | {
9 | "title": "te",
10 | "completed": false,
11 | "id": 4
12 | }
13 | ],
14 | "workers": [
15 | {
16 | "id": 1,
17 | "name": "Jordan",
18 | "lastName": "Walke",
19 | "daysWorked": "5",
20 | "price": "2000"
21 | },
22 | {
23 | "id": 2,
24 | "name": "Evan",
25 | "lastName": "You",
26 | "daysWorked": 7,
27 | "price": "3000"
28 | }
29 | ]
30 | }
--------------------------------------------------------------------------------
/my-app/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import './index.css';
4 | import App from './App';
5 | import reportWebVitals from './reportWebVitals';
6 |
7 | ReactDOM.render(
8 |
9 |
10 | ,
11 | document.getElementById('root')
12 | );
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();
18 |
--------------------------------------------------------------------------------
/my-app/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/my-app/src/components/Worker/Items.jsx:
--------------------------------------------------------------------------------
1 | export default function Items({workers, setDays, setPrice}) {
2 | return workers.map((worker, index) =>
3 |
4 | | {worker.name} |
5 | {worker.lastName} |
6 | setDays({days: e.target.value, worker})}/> |
8 | setPrice({price: e.target.value, worker})}/>
9 | |
10 | {worker.daysWorked * worker.price} |
11 |
12 | );
13 | }
14 |
--------------------------------------------------------------------------------
/my-app/src/components/ToDoList/Task.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function Task({ todo, onChangeStatus, onDelete}) {
4 | return
5 |
6 |
9 |
10 |
11 |
12 | }
--------------------------------------------------------------------------------
/my-app/src/components/ToDoList/AddTask.jsx:
--------------------------------------------------------------------------------
1 | import {useState} from "react";
2 |
3 | function AddTask({onAdd}) {
4 | const [title, setTitle] = useState('')
5 | const [completed] = useState(false)
6 | const onSubmit = (e) => {
7 | e.preventDefault()
8 |
9 | onAdd({title, completed})
10 | setTitle('')
11 | }
12 | return (
13 |
18 | );
19 | }
20 |
21 | export default AddTask;
22 |
--------------------------------------------------------------------------------
/my-app/src/App.css:
--------------------------------------------------------------------------------
1 | .App {
2 | text-align: center;
3 | }
4 |
5 | .App-header {
6 | background-color: #282c34;
7 | min-height: 100vh;
8 | display: flex;
9 | flex-direction: column;
10 | align-items: center;
11 | justify-content: center;
12 | font-size: calc(10px + 2vmin);
13 | color: white;
14 | }
15 |
16 | .App-link {
17 | color: #61dafb;
18 | }
19 |
20 | nav div {
21 | list-style-type: none;
22 | margin-bottom: 40px;
23 | }
24 |
25 | nav div a {
26 | padding: 0.25em 1em;
27 | text-decoration: none; /* no underline */
28 | background-color: #EBF5FF; /* pale bluish white */
29 | color: #4312AE; /* dark blue */
30 | border: 2px solid black;
31 | border-top-left-radius: 1em 1em; /* rounded corner! */
32 | border-top-right-radius: 1em 1em; /* another rounded corner! */
33 | }
34 | nav div a:hover, nav ul div a:focus {
35 | color: black;
36 | background-color: white;
37 | font-weight: bold;
38 | }
39 | .m-b-20 {
40 | margin-bottom: 20px;
41 | }
--------------------------------------------------------------------------------
/my-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "my-app",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@testing-library/jest-dom": "^5.14.1",
7 | "@testing-library/react": "^11.2.7",
8 | "@testing-library/user-event": "^12.8.3",
9 | "bootstrap": "^5.1.1",
10 | "react": "^17.0.2",
11 | "react-bootstrap": "^2.0.0-rc.0",
12 | "react-dom": "^17.0.2",
13 | "react-router-dom": "^5.3.0",
14 | "react-scripts": "4.0.3",
15 | "web-vitals": "^1.1.2"
16 | },
17 | "scripts": {
18 | "start": "react-scripts start",
19 | "build": "react-scripts build",
20 | "test": "react-scripts test",
21 | "eject": "react-scripts eject"
22 | },
23 | "eslintConfig": {
24 | "extends": [
25 | "react-app",
26 | "react-app/jest"
27 | ]
28 | },
29 | "browserslist": {
30 | "production": [
31 | ">0.2%",
32 | "not dead",
33 | "not op_mini all"
34 | ],
35 | "development": [
36 | "last 1 chrome version",
37 | "last 1 firefox version",
38 | "last 1 safari version"
39 | ]
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/my-app/src/App.jsx:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {
3 | Route,
4 | Switch,
5 | BrowserRouter,
6 | Link
7 | } from "react-router-dom"
8 |
9 | import ToDoList from './components/ToDoList/View';
10 | import Workers from "./components/Worker/List";
11 | import './App.css';
12 |
13 | class App extends Component {
14 | render() {
15 |
16 | return (
17 |
18 |
19 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | );
36 | }
37 | }
38 |
39 | export default App;
--------------------------------------------------------------------------------
/my-app/src/components/Loader/css/Loader.css:
--------------------------------------------------------------------------------
1 | .lds-ellipsis {
2 | display: inline-block;
3 | position: relative;
4 | width: 80px;
5 | height: 80px;
6 | }
7 | .lds-ellipsis div {
8 | position: absolute;
9 | top: 33px;
10 | width: 13px;
11 | height: 13px;
12 | border-radius: 50%;
13 | background: #fff;
14 | animation-timing-function: cubic-bezier(0, 1, 1, 0);
15 | }
16 | .lds-ellipsis div:nth-child(1) {
17 | left: 8px;
18 | animation: lds-ellipsis1 0.6s infinite;
19 | }
20 | .lds-ellipsis div:nth-child(2) {
21 | left: 8px;
22 | animation: lds-ellipsis2 0.6s infinite;
23 | }
24 | .lds-ellipsis div:nth-child(3) {
25 | left: 32px;
26 | animation: lds-ellipsis2 0.6s infinite;
27 | }
28 | .lds-ellipsis div:nth-child(4) {
29 | left: 56px;
30 | animation: lds-ellipsis3 0.6s infinite;
31 | }
32 | @keyframes lds-ellipsis1 {
33 | 0% {
34 | transform: scale(0);
35 | }
36 | 100% {
37 | transform: scale(1);
38 | }
39 | }
40 | @keyframes lds-ellipsis3 {
41 | 0% {
42 | transform: scale(1);
43 | }
44 | 100% {
45 | transform: scale(0);
46 | }
47 | }
48 | @keyframes lds-ellipsis2 {
49 | 0% {
50 | transform: translate(0, 0);
51 | }
52 | 100% {
53 | transform: translate(24px, 0);
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/my-app/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/my-app/src/components/Worker/List.jsx:
--------------------------------------------------------------------------------
1 | import {useEffect, useState} from "react";
2 | import './css/List.css';
3 | import Loader from "../Loader/Loader";
4 | import Items from "./Items";
5 |
6 | const resource = 'http://localhost:3004'
7 |
8 | export default function WorkerList() {
9 | let [workers, setWorkers] = useState([])
10 | let [loading, setLoading] = useState(true)
11 | useEffect(() => {
12 | const getWorkers = async () => {
13 | await fetchWorkers()
14 | .then(data => {
15 | setWorkers(data)
16 | setLoading(false)
17 | })
18 | .catch(() => setLoading(false))
19 | }
20 | getWorkers()
21 | }, [])
22 | const fetchWorkers = async () => {
23 | return await fetch(`${resource}/workers`)
24 | .then(res => res.json())
25 | }
26 | const setDays = async ({days, worker}) => {
27 | worker.daysWorked = days
28 | await updateWorker(worker)
29 | .then(() => setWorkers(workers.map((el => el.id === worker.id ? {...el, daysWorked: days} : el))))
30 | }
31 |
32 | const setPrice = async ({price, worker}) => {
33 | worker.price = price
34 | await updateWorker(worker)
35 | .then(() => setWorkers(workers.map((el => el.id === worker.id ? {...el, price} : el))))
36 | }
37 |
38 | const updateWorker = async (data) => {
39 | return await fetch(`${resource}/workers/${data.id}`, {
40 | method: 'PUT',
41 | headers: {
42 | 'Content-Type': 'application/json'
43 | },
44 | body: JSON.stringify(data)
45 | })
46 | .then(res => res.json())
47 | }
48 |
49 | return loading && || <>
50 |
51 |
Workers
52 |
53 |
54 |
55 |
56 | | Имя |
57 | Фамилия |
58 | Количество отработанных дней |
59 | Зарплатная ставка за день |
60 | Зарплата |
61 |
62 |
63 |
64 |
65 |
66 |
67 | >
68 | }
--------------------------------------------------------------------------------
/my-app/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/my-app/src/components/ToDoList/View.jsx:
--------------------------------------------------------------------------------
1 | import AddTask from './AddTask'
2 | import Tasks from "./Tasks";
3 | import Loader from "../Loader/Loader";
4 | import {useState, useEffect} from "react";
5 | import './css/ToDoList.css';
6 |
7 | const resource = 'http://localhost:3004'
8 |
9 | export default function View() {
10 | let [todos, setTodos] = useState([])
11 | let [loading, setLoading] = useState(true)
12 | useEffect(() => {
13 | const getTasks = async () => {
14 | await fetchTodos()
15 | .then(tasks => {
16 | setLoading(false)
17 | setTodos(tasks)
18 | })
19 | .catch(() => setLoading(false))
20 |
21 | }
22 | getTasks()
23 | }, [])
24 |
25 | //fetch todos
26 | const fetchTodos = async () => {
27 | return await fetch(`${resource}/todos`)
28 | .then(res => res.json())
29 | }
30 |
31 | // delete task
32 | const deleteTask = async (id) => {
33 | await fetch(`${resource}/todos/${id}`, {
34 | method: 'DELETE'
35 | })
36 | setTodos(todos.filter((todo => todo.id !== id)))
37 | }
38 |
39 | //add task
40 | const addTask = async (task) => {
41 | const res = await fetch(`${resource}/todos`, {
42 | method: 'POST',
43 | headers: {
44 | 'Content-Type': 'application/json'
45 | },
46 | body: JSON.stringify(task)
47 | })
48 | const todo = await res.json()
49 | setTodos([...todos, todo])
50 | }
51 |
52 | // change task
53 | const changeTask = async (task) => {
54 | task.completed = !task.completed
55 | const res = await fetch(`${resource}/todos/${task.id}`, {
56 | method: 'PUT',
57 | headers: {
58 | 'Content-Type': 'application/json'
59 | },
60 | body: JSON.stringify(task)
61 | })
62 | const todo = await res.json()
63 | setTodos(
64 | todos.map((el) => el.id === task.id ? {...el, completed: todo.completed} : el)
65 | )
66 | }
67 |
68 | return (
69 |
70 |
71 |
Tasks
72 |
73 | {loading ?
:
74 | {todos.length ?
75 |
76 | : No tasks to show
}
77 | }
78 |
79 |
80 | );
81 | }
82 |
--------------------------------------------------------------------------------
/my-app/src/components/ToDoList/css/ToDoList.css:
--------------------------------------------------------------------------------
1 | html,
2 | body {
3 | margin: 0;
4 | padding: 0;
5 | }
6 |
7 | body {
8 | height: 100vh;
9 | font: 22px 'Helvetica Neue', Helvetica, Arial, sans-serif;
10 | line-height: 1.2em;
11 | background: linear-gradient(to right, #4e65d4 0%, #293dcb 19%, #4246a5 60%, #505ac2 100%);
12 | display: flex;
13 | align-items: center;
14 | justify-content: center;
15 | color: #fff;
16 | }
17 |
18 | ul {
19 | list-style-type: none;
20 | -webkit-padding-start: 0;
21 | }
22 |
23 | .btn {
24 | cursor: pointer;
25 | font-size: 15px;
26 | padding: 10px 20px;
27 | border-radius: 2em;
28 | background: none;
29 | border: 1px solid #fff;
30 | transition: 250ms ease-out;
31 | }
32 |
33 | .btn-danger:hover {
34 | color: #fff;
35 | background: #e74c3c;
36 | }
37 |
38 | .btn-success:hover {
39 | color: #fff;
40 | background: #05b437;
41 | }
42 |
43 | .btn:focus {
44 | color: #fff;
45 | outline: none;
46 | }
47 |
48 | .container {
49 | width: 400px;
50 | min-height: 500px;
51 | box-shadow: 0 20px 80px rgba(0,0,0,0.6);
52 | position: relative;
53 | border-radius: 1em;
54 | padding: 15px;
55 | display: flex;
56 | flex-direction: column;
57 | justify-content: space-between;
58 | }
59 |
60 | .header {
61 | display: flex;
62 | justify-content: space-around;
63 | }
64 | .header h2 {
65 | margin: 0;
66 | }
67 |
68 | .task-count {
69 | align-self: center;
70 | }
71 |
72 | .todo-list:first-of-type {
73 | border-top: 1px solid #f5f4f4;
74 | }
75 |
76 | .list-item-view {
77 | padding-top: 12px;
78 | padding-bottom: 12px;
79 | display: flex;
80 | align-items: center;
81 | justify-content: space-between;
82 | }
83 |
84 | .form {
85 | margin-bottom: 10px;
86 | display: flex;
87 | justify-content: center;
88 | }
89 |
90 | .input-text {
91 | height: 40px;
92 | font-size: 15px;
93 | border: 1px solid #dce4ec;
94 | width: 100%;
95 | margin-right: 15px;
96 | border-radius: 2em;
97 | padding: 5px 10px;
98 | transition: border 250ms ease-out;
99 | }
100 |
101 | .input-text:focus {
102 | border: 1px solid;
103 | outline: none;
104 | }
105 |
106 |
107 | .completed {
108 | text-decoration: line-through;
109 | }
110 |
111 | input[type="checkbox"] {
112 | display: none;
113 | }
114 |
115 | .list-item-view label:hover {
116 | cursor: pointer;
117 | }
118 | .list-item-view label {
119 | color: #e6ff01;
120 | }
121 | .list-item-view label.completed {
122 | color: #00f204;
123 | }
124 |
125 | #todos {
126 | max-height: 500px;
127 | overflow: auto;
128 | }
129 |
--------------------------------------------------------------------------------
/my-app/README.md:
--------------------------------------------------------------------------------
1 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `npm start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13 |
14 | The page will reload if you make edits.\
15 | You will also see any lint errors in the console.
16 |
17 | ### `npm test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `npm run build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `npm run eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35 |
36 | If you aren’t 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.
37 |
38 | 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 you’re on your own.
39 |
40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
48 | ### Code Splitting
49 |
50 | 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)
51 |
52 | ### Analyzing the Bundle Size
53 |
54 | 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)
55 |
56 | ### Making a Progressive Web App
57 |
58 | 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)
59 |
60 | ### Advanced Configuration
61 |
62 | 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)
63 |
64 | ### Deployment
65 |
66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67 |
68 | ### `npm run build` fails to minify
69 |
70 | 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)
71 |
--------------------------------------------------------------------------------