javascriptreactjs

How to create a new React project without using additional frameworks?


I would like to create a simple React app with typescript, but the official documentation about creating a new project guides me towards other 3rd party frameworks like Next.js and Remix. How to start a project without those?


Solution

  • Create a project my-app using create react app:

    npx create-react-app my-app --template typescript
    cd my-app
    

    Start the development server:

    npm start
    

    Bundle the app into static files for production:

    npm run build