I am working on a React Project and have a bunch of tsx files that I want to convert as use as javascript for my project. How should I do that?
Advertisement
Answer
I am working on a React Project and have a bunch of tsx files that I want to convert as use as javascript for my project. How should I do that
You can use the typescript compiler e.g.
npx -p typescript tsc somefile.tsx