4 ms·
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 th
by lefrenchy 5y ago
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?
- christiansakai 5y agoRust has macros so this is possible. Maybe wont look exactly like JSX but it is good enough.
- texodus 5y agoYew has an `html!` macro and a very React/Elm like architecture https://github.com/yewstack/yew https://github.com/yewstack/yew
- steveklabnik 5y agoThere are a bunch of these, https://github.com/bodil/typed-html#quick-preview https://github.com/bodil/typed-html#quick-preview being the one I enjoyed most last time I was giving this a shot.
- ironmagma 5y agoThere are a few libraries that support this exactly: https://github.com/stoically/syn-rsx https://github.com/stoically/syn-rsx https://github.com/yewstack/yew 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.