mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Add render method to Component and auto implement Renderable * More cleanup * Rename Renderable method from view to render * Doc fixes * fix * Update CHANGELOG.md
17 lines
415 B
Rust
17 lines
415 B
Rust
#[macro_use]
|
|
mod helpers;
|
|
|
|
use std::iter;
|
|
|
|
pass_helper! {
|
|
html! { for iter::empty::<Html<TestComponent>>() };
|
|
html! { for Vec::<Html<TestComponent>>::new().into_iter() };
|
|
html! { for (0..3).map(|num| { html! { <span>{num}</span> } }) };
|
|
html! { for {iter::empty::<Html<TestComponent>>()} };
|
|
|
|
let empty: Vec<Html<TestComponent>> = Vec::new();
|
|
html! { for empty.into_iter() };
|
|
}
|
|
|
|
fn main() {}
|