You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use stylist::yew::use_style;use yew::prelude::*;#[function_component(Comp)]fncomp() -> Html{// Returns a Style instance.let style = use_style!("color: red;");html!{<div class={style}>{"Hello world!"}</div>}}
I get this error
the trait bound `impl yew::functional::hooks::Hook<Output = stylist::Style> + '_: yew::Hook` is not satisfied
the trait `yew::Hook` is implemented for `yew::BoxedHook<'_,T>`
(E0277)
The text was updated successfully, but these errors were encountered:
My code
Example from Docs
I get this error
The text was updated successfully, but these errors were encountered: