mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
38c4b0628b
Add a friendly error for adjancent JSX element case: ``` × Adjacent JSX elements must be wrapped in an enclosing tag. ╭─[misc/fail/jsx-adjacent-elements.jsx:3:3] 2 │ <div /> 3 │ <span /> · ─ 4 │ ); ╰──── help: Did you want a JSX fragment `<>...</>`? ``` This error message exists in babel.
5 lines
42 B
React
5 lines
42 B
React
const element = (
|
|
<div />
|
|
<span />
|
|
);
|