This is an example of a basic configuration for a professional project in React JS.
- Visual Studio Code
- Git
- Node JS
- Install packages
npm install
. - To start the development server, run
npm start
and open the url in the browserhttp://localhost:8080/
to view the app. - To generate production files, run
npm run build
.
Install the extension Prettier - Code formatter
.
Add the following configuration to .vscode/settings.json
file at the root of your project.
{
"git.ignoreLimitWarning": true,
"editor.tabSize": 2,
"prettier.singleQuote": true,
"prettier.jsxSingleQuote": true,
"prettier.arrowParens": "always"
}
- Configuration taken from the Platzi course: Curso Práctico de React JS.
- Teacher Oscar Barajas Tavares.