Closed hanusek closed 1 year ago
stylist ="0.11"
is only meant to be used with yew = "0.20"
, if you are stuck with yew 0.19, perhaps you can downgrade to stylist 0.10? In that case, you need to use a bit more verbose syntax here:
use stylist::yew::styled_component;
use yew::prelude::*;
#[styled_component(MyStyledComponent)]
fn my_styled_component() -> Html {
html! {<div class={css!("color: red;")}>{"Hello World!"}</div>}
}
Feel free to reopen if this still doesn't work after upgrading to yew 0.20
Hello @futursolo I have a weird problem.
Cargo.toml:
main.rs
log: