skip to Main Content

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?

2

Answers


  1. ReactJS itself technically is a library, meaning by using create-react-app means ReactJS app without frameworks.

    Also, the create-react-app has template with integrated Typescript, which can be achieved by running npx create-react-app my-app --template typescript

    https://create-react-app.dev/docs/getting-started#creating-a-typescript-app

    Login or Signup to reply.
  2. You could use Create React App or Vite (which is faster).

    npm init vite@latest -- --template react
    npm init vite@latest -- --template react-ts # to add TypeScript
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search