DEV Community

Discussion on: Incrementally migrating a CRA application to TypeScript without ejecting

Collapse
 
stephanvs profile image
Stephan van Stekelenburg

Nice post. I'm actually looking at migrating a project to TypeScript myself, and this would indeed enable a gradual move over.

Do you see any differences if we would be using .tsx files instead of .ts files?

Thanks!

Collapse
 
n1ru4l profile image
Laurin Quast • Edited

It totally works! Typescript will compile .tsx files to .js.

I am applying this practice to an open source project, so if you are interested you can find the initial changes in this PR: github.com/dungeon-revealer/dungeo...

Happy migrating! Oh, and it would be awesome if you could let me know whether this workflow works with you 🙂.