- Remember to install npm (npm install) in every folder.
npm start
ornpx react-scripts start
to start the server
- Navigate to the desired folder.
- Initialize a new npm project:
npm init -y
- Install the necessary React dependencies:
npm install react react-dom react-scripts
- Create required files and folders for a React app if not already present.
- Add or ensure the required scripts are in the package.json of the current directory:
{
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
}
}
Don't want to enroll in the course, but still find the Content Useful?
You can always buy me a coffee and/or "star" this repo