question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`;` 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:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
JounQincommented, Mar 27, 2022

Parsing is relied on remark-mdx totally now in v2.

1reaction
wooormcommented, Apr 24, 2020

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 do a = <>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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found