logoalt Hacker News

Write ReactJS in Rust

11 pointsby StellaMarylast Sunday at 10:43 AM3 commentsview on HN

Comments

ironbloodtoday at 5:04 PM

So I guess the package `brahma-firelight` is the core idea behind this? But why in the repo[0], you uploaded those `.node` files instead of the source code + building scripts? Also your source code `brahma.js` looks like generated from `@napi-rs/cli`. Because recently I'm trying to build rolldown and next.js for msys2 platforms, and I'm certain this line[1] of code won't work in some cases.

[0] https://github.com/Shyam20001/rsjs

[1] https://github.com/Shyam20001/rsjs/blob/a226f62de039ebbd8da0...

show 1 reply
cobertostoday at 5:07 PM

I wish the author included examples of what it's like to write ReactJS in Rust. Can't get a good idea of how succinct or structured it is to write for example a button handler on an element from what's in the docs currently.

show 1 reply
philipwhiuktoday at 4:54 PM

Obviously it's up to everyone how they open source stuff, but I'm not necessarily sure that a massive blob of compiled code is the way to go: https://github.com/Shyam20001/rsjs

show 2 replies