Skip to content

Commit f7850b8

Browse files
committed
chore(examples): Updated create-react-app examples to use v5.0.0
1 parent f5e43fe commit f7850b8

File tree

4 files changed

+55
-29
lines changed

4 files changed

+55
-29
lines changed

examples/create-react-app-typescript/README.md

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Install it and run:
2525

2626
```sh
2727
npm install
28-
npm run start
28+
npm start
2929
# or
3030
yarn
3131
yarn start
@@ -41,7 +41,7 @@ git commit -m "Initial commit"
4141

4242
## Learn More
4343

44-
To learn more about react-md and Next.js, take a look at the following resources:
44+
To learn more about react-md and Create React App, take a look at the following resources:
4545

4646
- [react-md Documentation](https://react-md.dev)
4747
- [Configuring your Layout](https://react-md.dev/guides/configuring-your-layout)
@@ -55,20 +55,20 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
5555

5656
In the project directory, you can run:
5757

58-
### `yarn start`
58+
### `npm start`
5959

6060
Runs the app in the development mode.\
61-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
61+
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
6262

63-
The page will reload if you make edits.\
64-
You will also see any lint errors in the console.
63+
The page will reload when you make changes.\
64+
You may also see any lint errors in the console.
6565

66-
### `yarn test`
66+
### `npm test`
6767

6868
Launches the test runner in the interactive watch mode.\
6969
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
7070

71-
### `yarn build`
71+
### `npm run build`
7272

7373
Builds the app for production to the `build` folder.\
7474
It correctly bundles React in production mode and optimizes the build for the best performance.
@@ -78,18 +78,43 @@ Your app is ready to be deployed!
7878

7979
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
8080

81-
### `yarn eject`
81+
### `npm run eject`
8282

83-
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
83+
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
8484

85-
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.
85+
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.
8686

87-
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.
87+
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.
8888

89-
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.
89+
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.
9090

9191
## Learn More
9292

9393
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
9494

9595
To learn React, check out the [React documentation](https://reactjs.org/).
96+
97+
### Code Splitting
98+
99+
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)
100+
101+
### Analyzing the Bundle Size
102+
103+
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)
104+
105+
### Making a Progressive Web App
106+
107+
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)
108+
109+
### Advanced Configuration
110+
111+
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)
112+
113+
### Deployment
114+
115+
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
116+
117+
### `npm run build` fails to minify
118+
119+
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)
120+

examples/create-react-app-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"react-dom": "^17.0.1",
2121
"react-md": "latest",
2222
"react-router-dom": "^6.0.2",
23-
"react-scripts": "4.0.3",
23+
"react-scripts": "5.0.0",
2424
"sass": "^1.36.0",
2525
"typescript": "^4.0.3",
2626
"web-vitals": "^2.1.0"

examples/create-react-app/README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Install it and run:
2525

2626
```sh
2727
npm install
28-
npm run start
28+
npm start
2929
# or
3030
yarn
3131
yarn start
@@ -41,7 +41,7 @@ git commit -m "Initial commit"
4141

4242
## Learn More
4343

44-
To learn more about react-md and Next.js, take a look at the following resources:
44+
To learn more about react-md and Create React App, take a look at the following resources:
4545

4646
- [react-md Documentation](https://react-md.dev)
4747
- [Configuring your Layout](https://react-md.dev/guides/configuring-your-layout)
@@ -55,20 +55,20 @@ This project was bootstrapped with [Create React App](https://github.com/faceboo
5555

5656
In the project directory, you can run:
5757

58-
### `yarn start`
58+
### `npm start`
5959

6060
Runs the app in the development mode.\
61-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
61+
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
6262

63-
The page will reload if you make edits.\
64-
You will also see any lint errors in the console.
63+
The page will reload when you make changes.\
64+
You may also see any lint errors in the console.
6565

66-
### `yarn test`
66+
### `npm test`
6767

6868
Launches the test runner in the interactive watch mode.\
6969
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
7070

71-
### `yarn build`
71+
### `npm run build`
7272

7373
Builds the app for production to the `build` folder.\
7474
It correctly bundles React in production mode and optimizes the build for the best performance.
@@ -78,15 +78,15 @@ Your app is ready to be deployed!
7878

7979
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
8080

81-
### `yarn eject`
81+
### `npm run eject`
8282

83-
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
83+
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
8484

85-
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.
85+
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.
8686

87-
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.
87+
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.
8888

89-
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.
89+
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.
9090

9191
## Learn More
9292

@@ -114,6 +114,7 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/a
114114

115115
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
116116

117-
### `yarn build` fails to minify
117+
### `npm run build` fails to minify
118118

119119
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)
120+

examples/create-react-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"react-dom": "^17.0.1",
1717
"react-md": "latest",
1818
"react-router-dom": "^6.0.2",
19-
"react-scripts": "4.0.3",
19+
"react-scripts": "5.0.0",
2020
"sass": "^1.37.5",
2121
"web-vitals": "^2.1.0"
2222
},

0 commit comments

Comments
 (0)