Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect h injection #140

Open
egoist opened this issue May 25, 2018 · 0 comments
Open

incorrect h injection #140

egoist opened this issue May 25, 2018 · 0 comments

Comments

@egoist
Copy link
Contributor

egoist commented May 25, 2018

const foo = {
  router() {
    return {
      render() {
        return (
          <div>
            <h1>Hello World!</h1>
          </div>
        )
      }
    }
  }
}

Results in:

const foo = {
  router() {
+    const h = this.$createElement;
     return {
       render() {
         const h = arguments[0];
         return h("div", [h("h1", ["Hello World!"])]);
       }

     };
  }

};
AkimotoAkari pushed a commit to AkimotoAkari/babel-plugin-transform-vue-jsx that referenced this issue Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant