mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Fix div prop name in css.mdx (#3185)
* Fix div prop name in css.mdx * Fix div prop name in yew/website/docs/concepts/basic-web-technologies/css.mdx `styles` is a not existing property in the `div` component. Changed it to `style`
This commit is contained in:
parent
8c9d942dbf
commit
c5324aff62
@ -94,7 +94,7 @@ but you can use it like any other HTML attribute:
|
||||
use yew::{classes, html};
|
||||
|
||||
html! {
|
||||
<div styles="color: red;"></div>
|
||||
<div style="color: red;"></div>
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ but you can use it like any other html attribute:
|
||||
use yew::{classes, html};
|
||||
|
||||
html! {
|
||||
<div styles="color: red;"></div>
|
||||
<div style="color: red;"></div>
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user