acornjs / acorn-jsx

Alternative, faster React.js JSX parser
MIT License
651 stars 74 forks source link

add support for react fragments shot syntax #96

Closed ukari closed 5 years ago

ukari commented 5 years ago

for example

let a = () => (
  <>
    <div>A</div>
    <div>B</div>
    <div>C</div>
  </>
);

react fragments shot syntax is the snippet(<></>) above

introduce link

RReverser commented 5 years ago

If this is a bug report, can you provide reproduction steps - how you're using it, what error you're getting etc.?

ukari commented 5 years ago

Sorry for my mistake, I has been realized it provides a type: "JSXFragment" just now. Closed