babel-plugin-jsx-vue-functional icon indicating copy to clipboard operation
babel-plugin-jsx-vue-functional copied to clipboard

Should convert to component only if returning JSX directly

Open egoist opened this issue 7 years ago • 1 comments

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

egoist avatar Dec 06 '17 09:12 egoist

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

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

egoist avatar Dec 06 '17 09:12 egoist