You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# React JS
|
|
|
|
|
|
|
|
|
|
[Home](../../README.md)
|
|
|
|
|
|
|
|
|
|
[Reference](https://reactjs.org/docs/create-a-new-react-app.html)
|
|
|
|
|
|
|
|
|
|
Bootstrapping a project
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ npx create-react-app myapp
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Project structure
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
C:.
|
|
|
|
|
| .eslintcache
|
|
|
|
|
| .gitignore
|
|
|
|
|
| package-lock.json
|
|
|
|
|
| package.json
|
|
|
|
|
| README.md
|
|
|
|
|
|
|
|
|
|
|
+---public
|
|
|
|
|
| favicon.ico
|
|
|
|
|
| index.html
|
|
|
|
|
| logo192.png
|
|
|
|
|
| logo512.png
|
|
|
|
|
| manifest.json
|
|
|
|
|
| robots.txt
|
|
|
|
|
|
|
|
|
|
|
\---src
|
|
|
|
|
App.css
|
|
|
|
|
App.js
|
|
|
|
|
App.test.js
|
|
|
|
|
index.css
|
|
|
|
|
index.js
|
|
|
|
|
logo.svg
|
|
|
|
|
reportWebVitals.js
|
|
|
|
|
setupTests.js
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Run the server
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ cd myapp
|
|
|
|
|
$ npm start
|
|
|
|
|
|
|
|
|
|
Compiled successfully!
|
|
|
|
|
|
|
|
|
|
You can now view myapp in the browser.
|
|
|
|
|
|
|
|
|
|
Local: http://localhost:3000
|
|
|
|
|
On Your Network: http://192.168.0.132:3000
|
|
|
|
|
|
|
|
|
|
Note that the development build is not optimized.
|
|
|
|
|
To create a production build, use npm run build.
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Browse [localhost](http://localhost:3000). React logo will be displayed
|