mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
12 lines
281 B
Rust
12 lines
281 B
Rust
use leptos::*;
|
|
|
|
#[component]
|
|
pub fn LogDisplay(#[prop(into)] log: Signal<Vec<String>>) -> impl IntoView {
|
|
view! {
|
|
<div>
|
|
<ul>
|
|
{move || log().iter().map(|l| view! { <li>{l}</li> }).collect::<Vec<_>>()}
|
|
</ul>
|
|
</div>
|
|
}
|
|
}
|