nickmessing / babel-plugin-jsx-vue-functional

JSX Syntactic Sugar Plugin for Vue Functional Components
MIT License
66 stars 4 forks source link

Should convert to component only if returning JSX directly #9

Open egoist opened 6 years ago

egoist commented 6 years ago

https://jsx.egoist.moe/gist/30abaf436a4b819500f91fd4c2a80d70

egoist commented 6 years ago

Or if there's a render method in top-level object:

// This will be convertd
const Foo = () => wrap({
  render() {
    return <div></div>
  }
})