How to create React project


1. Install "creat-react-app" 

"create-react-app"  is CLI to make React project easily.

You don't have to set Webpack or babel and this contains develop server, build system and ESLint etc basically.


Open your terminal and execute below commands.

"npm install -g create-react-app"
"npx create-react-app my-app"
"cd my-app"
"npm start"


2. Project structure

my-app/ ├── node_modules/ # Project dependency package ├── public/ # static file (index.html etc) ├── src/ # main React code │ ├── App.css │ ├── App.js # main React Component │ ├── App.test.js │ ├── reportWebvitals.js │ ├── setupTests.js │ ├── index.js # React start page │ ├── App.css # default style file │ ├── index.css # static style file ├── .gitignore ├── package.json # Project meta data and dependency list ├── README.md └── yarn.lock or package-lock.json # Package version control file