E0306: React/JSX is not allowed in vanilla TypeScript code
Vanilla TypeScript does not support JSX syntax (used in React code). It is a syntax error to create a JSX element or JSX fragment in vanilla TypeScript:
To fix this error, rename your .ts
file to have a .tsx
suffix instead.
Alternatively, use React.createElement
instead of JSX syntax:
Introduced in quick-lint-js version 2.10.0.