# Ionic React Without Typescript

**URL:** <https://forum.ionicframework.com/t/ionic-react-without-typescript/177062>\
**Category:** ionic-v3\
**Created:** [November 6, 2019, 6:32pm UTC](https://forum.ionicframework.com/t/ionic-react-without-typescript/177062 "2019-11-06T18:32:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davicustodio](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/davicustodio/32/92485_2.png) [@davicustodio](https://forum.ionicframework.com/u/davicustodio)\
**Post date:** [November 6, 2019, 6:32pm UTC](https://forum.ionicframework.com/t/ionic-react-without-typescript/177062/1 "2019-11-06T18:32:13Z")

</div>

Hello people. I am excited to start using Ionic with React, but I came across a question. I’m not used to programming using Typescript, but I noticed that all projects generated using ionic start are generated in TS. I would like to know if there is any alternative or parameter that user can use to have the project created using ES6 or ES7 without Typescript?  
Thanks.

---

<div class="post-metadata">

**Author:** ![mirkonasato](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mirkonasato/32/131398_2.png) [@mirkonasato](https://forum.ionicframework.com/u/mirkonasato)\
**Post date:** [November 6, 2019, 9:04pm UTC](https://forum.ionicframework.com/t/ionic-react-without-typescript/177062/2 "2019-11-06T21:04:48Z")

</div>

Funny, I literally just tried manually converting a project generated by `ionic start` to not use TypeScript, just out of curiosity. And it seems to work. But I haven’t tried running in Android/iOS yet.

However I’m pretty sure (after running `ionic help start` and also looking at the [starters](https://github.com/ionic-team/starters/tree/master/react/official) project) that there isn’t a option in the Ionic CLI, and that TypeScript is the only officially supported setup.

So my recommendation would be to stick with TypeScript, unless you’re just experimenting like me.

After all TypeScript is a _superset_ of JavaScript and supports _optional_ type checking. If you set `"strict": false` in `tsconfig.json` that’ll disable mandatory checks, and at that point you can basically write regular JavaScript code, even if the file extension is `.ts` or `.tsx`.

Then you can learn more TypeScript features over time if you feel like. Quite a few people are reluctant at first but then end up liking TypeScript.

---

<div class="post-metadata">

**Author:** ![mirkonasato](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mirkonasato/32/131398_2.png) [@mirkonasato](https://forum.ionicframework.com/u/mirkonasato)\
**Post date:** [November 7, 2019, 1:04pm UTC](https://forum.ionicframework.com/t/ionic-react-without-typescript/177062/3 "2019-11-07T13:04:50Z")

</div>

> Funny, I literally just tried manually converting a project generated by `ionic start` to not use TypeScript, just out of curiosity. And it seems to work. But I haven’t tried running in Android/iOS yet.

Well, it works in the browser if you start the dev server with `npm start`, but not with `ionic serve`. There’s clearly something in the Ionic CLI that relies on TypeScript. Strange, because `ionic serve` is really just calling `react-scripts` underneath.

---

<div class="post-metadata">

**Author:** ![mirkonasato](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mirkonasato/32/131398_2.png) [@mirkonasato](https://forum.ionicframework.com/u/mirkonasato)\
**Post date:** [November 7, 2019, 3:34pm UTC](https://forum.ionicframework.com/t/ionic-react-without-typescript/177062/4 "2019-11-07T15:34:51Z")

</div>

Just realised there’s an easier option for people who prefer JavaScript: simply rename all `*.tsx` files to `*.js`.

(TypeScript will still be used as the compiler, but you can write regular JavaScript code. This works because the project generated by the Ionic CLI has `"allowJs": true` in `tsconfig.json`.)

---

<div class="post-metadata">

**Author:** ![enriquerene0](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@enriquerene0](https://forum.ionicframework.com/u/enriquerene0)\
**Post date:** [July 2, 2020, 5:44pm UTC](https://forum.ionicframework.com/t/ionic-react-without-typescript/177062/5 "2020-07-02T17:44:20Z")

</div>

I’m a “try-first oriented” developer and I say this because in practical terms the difference between JS and TS is just you have assign a type to your objects. I have an additional work of create **interfaces** before create classes and functions, properties and so on but it’s really worth! TS can provide more predictability about you’re developing, easier to debug and maintain. I think it’s more organized also since all object has an interface as type. Following the good practices now I have a good name and interfaces descriptions to help me to read a code.  
My suggestion is **try TypeScript!** It can be a little annoying at beggining but it worth in projects

---

<div class="post-metadata">

**Author:** ![josephgodwinke](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/josephgodwinke/32/142410_2.png) [@josephgodwinke](https://forum.ionicframework.com/u/josephgodwinke)\
**Post date:** [September 26, 2022, 7:39am UTC](https://forum.ionicframework.com/t/ionic-react-without-typescript/177062/6 "2022-09-26T07:39:01Z")

</div>

It works perfectly on Android. Just change all `.tsx` to `js` and run `react-scripts.cmd build`
