Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like this idea and want to keep up with it. The only that would hold me back is that I feel spoiled writing JSX, I just think it's such a nice way to write the front-end within the javascript. If you could get JSX like syntax in Rust I would be 100% sold on this. Does anyone know if that is possible? I assume you'd have to write a parser for this?


There are a few libraries that support this exactly:

https://github.com/stoically/syn-rsx

https://github.com/yewstack/yew

But there are others like Sauron, Maple, and Percy that have their own Elm-like approach which is probably almost just as good.


There are a bunch of these, https://github.com/bodil/typed-html#quick-preview being the one I enjoyed most last time I was giving this a shot.


Yew has an `html!` macro and a very React/Elm like architecture https://github.com/yewstack/yew


Rust has macros so this is possible. Maybe wont look exactly like JSX but it is good enough.




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

Search: