Skip to content

React/JSX Style Guide

https://github.com/airbnb/javascript/tree/master/react

Install Create React App:

Open a terminal and run the following command to install Create React App globally:

bash
npm install -g create-react-app

Create a New React App:

Run the following command to create a new React app. Replace my-react-app with your desired project name.

bash
npx create-react-app my-react-app

Change into the project directory:

bash
cd my-react-app

Create a New Component:

Create a new component file. You can do this manually or by using the terminal. For example:

bash
touch src/MyComponent.js