react.hiccup icon indicating copy to clipboard operation
react.hiccup copied to clipboard

Have you thought about babel ?

Open benzen opened this issue 9 years ago • 4 comments

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?

benzen avatar Mar 16 '16 13:03 benzen

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.

lantiga avatar Mar 17 '16 14:03 lantiga

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

benzen avatar Mar 17 '16 16:03 benzen

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

callwait avatar Sep 11 '18 07:09 callwait

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

lantiga avatar Sep 11 '18 18:09 lantiga