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 -1
View File
@@ -38,7 +38,7 @@ struct ExampleProps {
initial_name: String,
}
static Example: FC<ExampleProps> = |cx| {
pub static Example: FC<ExampleProps> = |cx| {
let dispaly_name = use_state(cx, move || cx.initial_name.clone());
cx.render(rsx! {
+6 -6
View File
@@ -19,7 +19,7 @@ fn main() {
.unwrap();
}
pub const App: FC<()> = |cx| {
pub static App: FC<()> = |cx| {
cx.render(rsx!(
div { class: "overflow-hidden"
link { href:"https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel:"stylesheet" }
@@ -34,7 +34,7 @@ pub const App: FC<()> = |cx| {
))
};
pub const Header: FC<()> = |cx| {
pub static Header: FC<()> = |cx| {
cx.render(rsx! {
div {
header { class: "text-gray-400 bg-gray-900 body-font"
@@ -60,7 +60,7 @@ pub const Header: FC<()> = |cx| {
})
};
pub const Hero: FC<()> = |cx| {
pub static Hero: FC<()> = |cx| {
//
cx.render(rsx! {
section{ class: "text-gray-400 bg-gray-900 body-font"
@@ -98,7 +98,7 @@ pub const Hero: FC<()> = |cx| {
}
})
};
pub const Entry: FC<()> = |cx| {
pub static Entry: FC<()> = |cx| {
//
cx.render(rsx! {
section{ class: "text-gray-400 bg-gray-900 body-font"
@@ -111,7 +111,7 @@ pub const Entry: FC<()> = |cx| {
})
};
pub const StacksIcon: FC<()> = |cx| {
pub static StacksIcon: FC<()> = |cx| {
cx.render(rsx!(
svg {
// xmlns: "http://www.w3.org/2000/svg"
@@ -126,7 +126,7 @@ pub const StacksIcon: FC<()> = |cx| {
}
))
};
pub const RightArrowIcon: FC<()> = |cx| {
pub static RightArrowIcon: FC<()> = |cx| {
cx.render(rsx!(
svg {
fill: "none"