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

Have you thought about babel ? #10

Open
benzen opened this issue Mar 16, 2016 · 4 comments
Open

Have you thought about babel ? #10

benzen opened this issue Mar 16, 2016 · 4 comments

Comments

@benzen
Copy link

benzen commented Mar 16, 2016

This project is a great idea.

But have you thought about using babel instead of sweet.js ?
I assume most people who use react also use babel.

So it would be easier to adopt as a depedecy.

Just like babel has a react preset, we could have a react-hipccup preset. And there you don't even need a function/macro call.

Wouldn't it be perfect?

@lantiga
Copy link
Owner

lantiga commented Mar 17, 2016

Hey, thanks.
I actually think babel would be a perfect fit at this point too. I can't commit to this right now, but if you're willing to give it a spin I'll be happy to help.

@benzen
Copy link
Author

benzen commented Mar 17, 2016

I never wrote any babel plugin, so I'm maybe not the rigt person for this.

Still I found this https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-inline-elements

It's the babel plugin that do the heavy lifting for the jsx syntax

@callwait
Copy link

Hi everyone! I wrote babel hiccup plugin. Any feedback, please.
I did it because I love clojurescript and react.
https://github.com/callwait/babel-plugin-react-hiccup

@lantiga
Copy link
Owner

lantiga commented Sep 11, 2018

Great job! Babel is 100% the way to go today

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

3 participants