`;` could be part of `jsx` node
See original GitHub issue<div>hi</div>;
is a valid jsx node, but eslint-mdx
parses it incorrectly like <div>hi</div>
what means ;
in jsx node are ignored.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
JSX In Depth - React
The first part of a JSX tag determines the type of the React element. Capitalized types indicate that the JSX tag is referring...
Read more >Documentation - JSX - TypeScript
JSX is an embeddable XML-like syntax. It is meant to be transformed into valid JavaScript, though the semantics of that transformation are ...
Read more >Is node js and JSX required for React JS - Stack Overflow
Yes you can create ReactJs app without nodejs and jsx. But why you should use JSX? JSX provides a very clean way to...
Read more >JSX in React – Explained with Examples - freeCodeCamp
We can use the above JSX in our React code like this: ... JSX code on left and see the converted code on...
Read more >How To Create React Elements with JSX - DigitalOcean
You will need a development environment running Node.js; ... Your browser will load with a React application included as part of Create ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Parsing is relied on
remark-mdx
totally now in v2.The semicolon is not part of JSX: https://facebook.github.io/jsx/ It’s part of JS with embedded JSX, because you can do
a = 1;
, you can also doa = <>1</>;
. So, for MDX, the semicolon shouldn’t be handled. Similar to how a plus, equals to, or other random characters wouldn’t be:<>1</> + <>1</> = 2