3 ms·
According to https://github.com/Microsoft/TypeScript/wiki/JSX https://github.com/Microsoft/TypeScript/wiki/JSX, there are two JSX processing options. The first
by saidajigumi 11y ago
According to https://github.com/Microsoft/TypeScript/wiki/JSX https://github.com/Microsoft/TypeScript/wiki/JSX, there are two JSX processing options. The first is a JSX passthru ("preserve" mode) and the second ("react" mode) will generate React.createElement, etc. See that page for the technical details.
As such, preserve mode is intended for use with other backends, e.g. those listed under Transpilers at https://facebook.github.io/jsx/ https://facebook.github.io/jsx/. Whichever non-React backend you choose therefore defines the JSX runtime handling rather than having that baked into TypeScript.