implement spreading props in the rsx macro
This commit is contained in:
1 parent
9e167dfdb7
commit
5b65c4cfb4
7 files changed
+208
-102
No files matched your search
+1
-1
@@ -73,7 +73,7 @@ impl<'a> HasAttributesBox<'a, Props<'a>> for Props<'a> {
|
||||
impl ExtendedGlobalAttributesMarker for Props<'_> {}
|
||||
|
||||
fn Component<'a>(cx: Scope<'a, Props<'a>>) -> Element<'a> {
|
||||
let attributes = &cx.props.attributes;
|
||||
let attributes = &*cx.props.attributes;
|
||||
render! {
|
||||
audio {
|
||||
..attributes,
|
||||
|
||||
Reference in new issue
Block a user