lantiga / react.hiccup

React 0% JSX, 100% hiccup
MIT License
81 stars 0 forks source link

Have you thought about babel ? #10

Open benzen opened 8 years ago

benzen commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 6 years ago

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 commented 6 years ago

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