futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
366 stars 22 forks source link

`use stylist::css` missing in the first yew example in the readme #58

Closed Madoshakalaka closed 2 years ago

Madoshakalaka commented 2 years ago
- stylist::yew::styled_component;
+ use stylist::{yew::styled_component, css};

and the version is outdated:

- stylist = "0.9"
+ stylist = "0.10"
futursolo commented 2 years ago

You don’t need to import css! inside of a styled_component.

See: https://docs.rs/stylist/0.10.0/stylist/yew/attr.styled_component.html#note

It's true that the version needs to be updated.