Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How create react component with .tsx extension using react-create command

Tags:

reactjs

Is this possible to create a component using React cli with .tsx extension. I have used react-create component line-chart --jsx for creating .jsx extension. Is there any React cli to create .tsx extension?

like image 784
Kesavan Subramaniam Che Avatar asked Oct 16 '25 19:10

Kesavan Subramaniam Che


1 Answers

npx create-react-app my-app --template typescript

This comment will create a React-Typescript project

like image 59
Kesavan Subramaniam Che Avatar answered Oct 19 '25 12:10

Kesavan Subramaniam Che



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!