Search code examples
reactjswebpackbabeljsnodemonnpm-scripts

Should we have to do this everytime like- install main and dev dependencies and configuring babel,webpack and npm scripts?


I'm a beginner in React and stuck with some problem. I want to create a new react project then every time Will I have to follow the whole guide like - installing main dependencies ,installing dev dependencies and configuring babel,webpack and npm scripts or Is there any workaround so that I can use dependencies installed and configured in another project in my new project as both the projects are present in my local machine or PC.


Solution

  • you need to follow these steps

    1. npx or npm create-react-app my-app
    2. cd my-app
    3. npm start