Ask Your Question
3

What is the reason for my tsx file to correctly display in my React application without using Babel?

asked 2023-05-05 06:36:43 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-05 07:05:02 +0000

huitzilopochtli gravatar image

It is possible that your browser or Node.js environment has built-in support for TypeScript without needing to use Babel as a transpiler. Some environments may be able to read and understand TypeScript syntax out of the box, allowing the code to be executed without any additional configuration. However, it is still recommended to use a tool like Babel to ensure compatibility with older browsers and other environments that may not have built-in TypeScript support.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-05 06:36:43 +0000

Seen: 11 times

Last updated: May 05 '23