Is your proposal related to a problem?
TypeScript 4.1 supports React 17's new JSX factories:
TypeScript 4.1 supports React 17’s upcoming jsx and jsxs factory functions through two new options for the jsx compiler option:
These options are intended for production and development compiles respectively. Often, the options from one can extend from the other. For example, a tsconfig.json for production builds might look like the following:
and one for development builds might look like the following:
Describe the solution you'd like
The default jsx transform in TypeScript should be react-jsxdev. Only when running react-scripts build it should be react-jsx.
Describe alternatives you've considered
Additional context
Related issues:
Background information:
Is your proposal related to a problem?
TypeScript 4.1 supports React 17's new JSX factories:
Describe the solution you'd like
The default
jsxtransform in TypeScript should bereact-jsxdev. Only when runningreact-scripts buildit should bereact-jsx.Describe alternatives you've considered
Additional context
Related issues:
Background information: