docs: big updates to the reference

This commit is contained in:
Jonathan Kelley committed 2021-07-16 16:11:25 -04:00
1 parent caf772cf24
commit 583fdfa561
57 files changed
+726 -247

No files matched your search

+1 -2
View File
@@ -12,7 +12,6 @@
//! A coming update with the assets system will make it possible to include global css from child components.
use dioxus::prelude::*;
fn main() {}
const STYLE: &str = r#"
body {background-color: powderblue;}
@@ -20,7 +19,7 @@ h1 {color: blue;}
p {color: red;}
"#;
const Example: FC<()> = |cx| {
pub static Example: FC<()> = |cx| {
cx.render(rsx! {
head { style { "{STYLE}" } }
body {