Hacker News new | past | comments | ask | show | jobs | submit login

I'm interested in tools like this because it allows me to build my front-end out of regular functions, which I can compose however I want using regular code. I never liked writing HTML or CSS in the first place.



> I never liked writing HTML or CSS in the first place

I also did not like the split between code and markup and or style.

> build my front-end out of regular functions, which I can compose however I want using regular code

Yes, me too! I want to share what I found.

PureScript. Has some nice libs like Thermite (React under the hood) and Halogen (no React, plain PureScript, cleaner). And much more then these two...

Elm. Has the batteries included. Nice lib in this language is elm-css, which makes CSS/HTML styling symbols typesafe!

GHCJS. The heavy weight. Compiles Haskell to JS (Elm and PureScript merely inspired by Haskell). Coming along quite well, may not be very ready for production. Lots of interesting libraries. Big lib here is Reflex.


Barring adding a build step, why couldn't you compose a function that returns JSX?


Or just skip JSX and use ReactDOM directly.[1] JSX is just sugar for the functions underneath, after all.

[1]: https://facebook.github.io/react/docs/top-level-api.html#rea...


Isn't that a lot like hyperscript? Maybe I like this or mercury or I one of the other varieties better for one reason or another. Is ReactDOM the best fit for everyone?


I've never used HyperScript, and I made no claims about anything being the ONE TRUE TOOL. I suggested that yladiz's recommendation would fit your described preferences better without injecting JSX.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: