vuejs / babel-plugin-transform-vue-jsx

babel plugin for vue 2.0 jsx
1.85k stars 132 forks source link

JSX fragment syntax (<> ... </>) #188

Open mikeyhew opened 4 years ago

mikeyhew commented 4 years ago

I'm not too familiar with Vue, only just started using it for work, but would it be possible for this plugin to support JSX fragment syntax? For example

render() {
  return <>Some text</>;
}
mikeyhew commented 4 years ago

Hey, really sorry about all the issues I created! I kept getting a 500 error from GitHub so I assumed it didn't get created, and didn't think to check the issues page to see.

guohuihot commented 4 years ago

I also have this need. How to solve

zhuzhuaicoding commented 4 years ago

use [] can do

whaaaley commented 2 years ago

I would like this as well. I'm moving components to/from non-react/vue. At the very least maybe provide a way to specify a fragment pragma?