Using Ionic React without TypeScript

Hello,

if I use ionic create to create ionic app with react, it uses typescript. Is it possible to create without typescript?

Thanks!

No, however you can simply rename all *.ts or *.tsx files to *.js, remove any TypeScript-specific features and everything should work with regular JavaScript as well.

2 Likes

Unfortunately, it says that index.tsx is not found :frowning:

You’ll need to restart the dev server if you renamed the files while it was running.

Look in you package.json file and see if this line needs to be edited

  "main": "src/index.tsx",

Are you using TypeScript in your Udemy Course? I dont like TS :slight_smile:

@ArasBerke Did you continue with the JavaScript in Ionic-react?
Is it working well with JavaScript ?

Why…would you want to do this :neutral_face: