wip: rename fc to component

This commit is contained in:
Jonathan Kelley committed 2021-12-09 21:19:31 -05:00
1 parent 85ab8b91c6
commit 1e4a599d14
61 files changed
+524 -145

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ fn main() {
dioxus_web::launch(App, |c| c);
}
static App: FC<()> = |cx, props| {
static App: Component<()> = |cx, props| {
let mut count = use_state(cx, || 0);
cx.push_task(|| async move {
+1 -1
View File
@@ -107,7 +107,7 @@ impl Label {
}
}
static App: FC<()> = |cx, _props| {
static App: Component<()> = |cx, _props| {
let mut items = use_ref(cx, || vec![]);
let mut selected = use_state(cx, || None);
+1 -1
View File
@@ -15,7 +15,7 @@ fn main() {
dioxus_web::launch(App, |c| c);
}
static App: FC<()> = |cx, props| {
static App: Component<()> = |cx, props| {
let show = use_state(cx, || true);
let inner = match *show {
+1 -1
View File
@@ -14,7 +14,7 @@ fn main() {
dioxus_web::launch(App, |c| c);
}
static App: FC<()> = |cx, _| {
static App: Component<()> = |cx, _| {
let doggo = cx.suspend(|| async move {
#[derive(serde::Deserialize)]
struct Doggo {