Merge pull request #258 from HansTrashy/remove-router-div

This commit is contained in:
Jonathan Kelley 2022-02-16 12:09:50 -05:00 committed by GitHub
commit edabb68731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,5 @@ pub fn Router<'a>(cx: Scope<'a, RouterProps<'a>>) -> Element {
cx.props.onchange.call(path.to_string());
}
cx.render(rsx!(
div { &cx.props.children }
))
cx.render(rsx!(&cx.props.children))
}