Show HN: Nectar, a Rust-like React that compiles to WebAssembly (buildnectar.com)

16 points by blakeburnette 6 days ago

7 comments:

by debdattabasu 6 days ago

This is genuinely very useful. In rust all you have is egui which is amazing but no proper ergonomic setup. Floem is a serious contender here but you went with a different approach. Watching this closely because I have some requirement where I need same codebase to work in desktop without electron and on wasm single binary single canvas.

How is your system different from floem? Are you doing pure immediate mode or retained mode partially? What are you using for 2d? Is this portable between webgl and webgpu? Do you need help? I am happy to drive this along if this is useful.

by josephg 30 minutes ago

How is this different / better than Leptos or Dioxus?

https://leptos.dev/

https://dioxuslabs.com/

by cyberclimb 5 days ago

Nice! Heads up that unfortunately the demos don't appear to scroll on mobile

by cush 34 minutes ago

Wow that demo is slow on iOS

by Tistron 40 minutes ago

Demo does not work in Fx on android

by barefootford an hour ago

Demos dead on iOS on iPhone 16 pro.

by LoganDark 39 minutes ago

Safari on my Mac can't run it either, but Chrome can.

In Safari, the page seems to render once, and if I resize the window, it just stretches the canvas? The thing seems to die after rendering one frame.

Data from: Hacker News, provided by Hacker News (unofficial) API