dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Remove `rsx!(cx,` shorthand

Open jkelleyrtp opened this issue 3 years ago • 1 comments

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.

jkelleyrtp avatar Feb 15 '22 20:02 jkelleyrtp

We could have 2 separate macros, rsx! (just RSX syntax), and render!(cx, stuff), which would be a shortcut for cx.render(rsx! {stuff})

rMazeiks avatar Aug 12 '22 21:08 rMazeiks

We ended up adding an unhygenic render macro.

jkelleyrtp avatar Dec 30 '22 08:12 jkelleyrtp