0

I created a react app using npx create-react-app client-app --use-npm --typescript I expect to create a project using typescript but after a while it create a project that use index.js and app.js instead of index.tsx and app.tsx. Is there any problem with my command line?

and file tsconfig.json is not created thanks

1

1 Answer 1

1

The correct syntax would be npx create-react-app client-app --template typescript.

See https://create-react-app.dev/docs/adding-typescript/#installation.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.