feat: impl IntoView for &Fragment (#655)

This commit is contained in:
Greg Johnston 2023-03-10 09:43:03 -05:00 committed by GitHub
parent d291cdb968
commit c782017578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -451,6 +451,12 @@ impl<const N: usize> IntoView for [View; N] {
}
}
impl IntoView for &Fragment {
fn into_view(self, cx: Scope) -> View {
self.to_owned().into_view(cx)
}
}
#[cfg(all(target_arch = "wasm32", feature = "web"))]
impl Mountable for View {
fn get_mountable_node(&self) -> web_sys::Node {