Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX in Typescript with only *.ts file extensions #7161

Closed
ericbiewener opened this issue Jun 4, 2019 · 2 comments
Closed

JSX in Typescript with only *.ts file extensions #7161

ericbiewener opened this issue Jun 4, 2019 · 2 comments

Comments

@ericbiewener
Copy link

ericbiewener commented Jun 4, 2019

Is it possible to configure create-react-app to process JSX syntax inside *.ts files rather than only in *.tsx? This is the default for non-Typescript projects now -- only *.js files are generated. Seems to me like the reasoning would be the same as in this issue.

@nmain
Copy link

nmain commented Jun 4, 2019

The typescript community as a whole has decided on ts for typescript files with jsx and tsx for typescript files with jsx in them. See microsoft/TypeScript#26489 for a rundown of the basic issues.

@robertvansteen
Copy link
Contributor

This is indeed a requirement of TypeScript and not something that can be configured.

@lock lock bot locked and limited conversation to collaborators Jun 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants