Fix counters_isomorphic

This commit is contained in:
Greg Johnston 2023-01-02 18:37:10 -05:00
parent d4b5b958f3
commit a2943c4649

View file

@ -116,7 +116,7 @@ pub fn Counter(cx: Scope) -> impl IntoView {
<span>"Value: " {move || value().to_string()} "!"</span>
<button on:click=move |_| inc.dispatch(())>"+1"</button>
</div>
{move || error_msg().map(|msg| view! { cx, <p>"Error: " {msg}</p>})}
{move || error_msg().map(|msg| view! { cx, <p>"Error: " {msg.to_string()}</p>})}
</div>
}
}