dioxus
dioxus copied to clipboard
Remove `rsx!(cx,` shorthand
Specific Demand
The shorthand for rendering nodes is less useful than the issues it causes by refusing legitimate syntax. We could either limit the shorthand to just idents with cx or remove it altogether to be more consistent.
We could have 2 separate macros, rsx! (just RSX syntax), and render!(cx, stuff), which would be a shortcut for cx.render(rsx! {stuff})
We ended up adding an unhygenic render macro.