React / How to start different project in the same folder?

Viewed 13

I have installed a react environment in my VSC with

npx create-react-app mon-app

If I use the same command to create another project, it downloads again all the packages. Is there a way to use the first environment to start different projects ? For exemple when I use :

npm start

it uses this line in package.json

  "start": "react-scripts start",

How does React know about starting the App.js located in src folder ? Is it possible to modify this file so it can start a different file ?

0 Answers
Related