diff --git a/examples/nested_list/src/app.rs b/examples/nested_list/src/app.rs
index 6c62b7d1c44..eacbccdd2f2 100644
--- a/examples/nested_list/src/app.rs
+++ b/examples/nested_list/src/app.rs
@@ -1,3 +1,5 @@
+use std::iter;
+
use yew::prelude::*;
use super::header::ListHeader;
@@ -48,23 +50,48 @@ impl Component for App {
// note the use of `html_nested!` instead of `html!`.
let letters = ('A'..='C')
- .map(|letter| html_nested! { });
+ .map(|letter| html_nested! { });
html! {
{ "Nested List Demo" }
-
-
-
-
-
- { "Sublist!" }
-
-
-
- { for letters }
-
-
+
+ }
+ ]
+ }
+ >
+ {vec![
+ html_nested! { },
+ html_nested! { },
+ html_nested! {
+
+ { "Sublist!" }
+
+ }]
+ }
+ >
+ {
+ iter::once(html_nested! { })
+ .chain(letters)
+ .collect::>()
+ }
+
+
+ },
+ ]}
+
+
{ self.view_last_hovered() }
diff --git a/examples/nested_list/src/list.rs b/examples/nested_list/src/list.rs
index 53c2101945e..46570610a96 100644
--- a/examples/nested_list/src/list.rs
+++ b/examples/nested_list/src/list.rs
@@ -1,64 +1,23 @@
use std::rc::Rc;
-use yew::html::ChildrenRenderer;
use yew::prelude::*;
-use yew::virtual_dom::{VChild, VComp};
+use yew::virtual_dom::VChild;
-use crate::header::{ListHeader, Props as HeaderProps};
-use crate::item::{ListItem, Props as ItemProps};
+use crate::header::ListHeader;
+use crate::item::ListItem;
use crate::{Hovered, WeakComponentLink};
-#[derive(Clone, PartialEq)]
-pub enum Variants {
- Item(Rc<