React setup
To set up our development environment, the first step will be the React setup. There are different options available to install React. If you already have an existing app and want to add React, you can install it using a package manager such as npm
using this command:
npm init npm install --save react react-dom
However, if you are starting a new project, the easiest way to get started is with the React Starter Kit. Just go to the Command Prompt and execute the following command to install the React Starter kit:
npminstall -g create-react-app
This command will install and set up the local development environment by downloading all the required dependencies. There are a number of benefits to have your development environment with node, such as optimized production builds, installing libraries using simple npm
or yarn
commands, and such.
Once you have it installed, you can create your first app using the given command:
create-react-app seat-booking
It will create a frontend application...