E0177: React/JSX is not allowed in vanilla JavaScript code
Vanilla JavaScript does not support JSX syntax (used in React code). It is a syntax error to create a JSX element or JSX fragment in vanilla JavaScript:
To fix this error, use React.createElement
instead of JSX syntax:
Alternatively, use --language=javascript-jsx
instead of
--language=javascript
.
Introduced in quick-lint-js version 0.6.0.