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

Allow expression to show inline component instead of run function. #4

Closed
n3tr opened this issue Jun 14, 2017 · 0 comments
Closed

Allow expression to show inline component instead of run function. #4

n3tr opened this issue Jun 14, 2017 · 0 comments

Comments

@n3tr
Copy link
Owner

n3tr commented Jun 14, 2017

Currently, We use run function to preview inline component. Better we can use expression call instead.

The idea is create Babel plugins to transform JSXElement expression into CallExpression expression (do not forget to add line number inside function args)

https://astexplorer.net/#/gist/223df6308d2599596751e7c976a5a274/3be0418daec5e283eb2dfbecfd0a84faf007b830

@n3tr n3tr closed this as completed Jun 22, 2017
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