React/React Udemy Lecture

Creating a React App #9 What is create react app

Jeungbin Han 2022. 12. 9. 05:45

Generating a Project

npx create-react-app <Project Name>

Go Into the Project 

cd <Project Name>

Run

npm start

 

 

What are we running in our terminal?

Files in my Project [index.js , App.js , reportWebVitals.js]

=>

Create React App Dev Server 

- Babel : Tool to true JSX into normal JS code =>

- Webpack : Tool to merge all project into a single file =>

- bundle.js

 

Inside the folder

- index.js : First file that gets executed when our app runs

- index.html : Skeleton for the React app

- package.json :Lists dependencies our app needs

- package-lock.json : Lists dependencies our app needs

- node-modules : Containes dependencies our app needs