node_modules icon indicating copy to clipboard operation
node_modules copied to clipboard

Support <></> syntax

Open ValentineStone opened this issue 7 years ago • 3 comments

A feature request to support fragment syntax according to: https://reactjs.org/docs/fragments.html#short-syntax

Also mentioned in: http://facebook.github.io/jsx/ As JSXFragment

Possible implementation might work by defining an option like fragment and having is accept either null, so that elementName will be null, or a string, so that according to the useVariables option elementName will either be the provided string, or a variable reference.

ValentineStone avatar Mar 19 '18 18:03 ValentineStone

This is a feature I'm quite keen on as well.

brianmhunt avatar Jun 26 '18 02:06 brianmhunt

... though I ended up supporting partials in Knockout by respecting an array of JSX, so this is less necessary.

brianmhunt avatar Jun 29 '18 13:06 brianmhunt

@brandonpayton, in an array the commas are quite messy though, it does not look JSXy)) image

ValentineStone avatar Jul 01 '18 05:07 ValentineStone