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 -5
View File
@@ -5,12 +5,8 @@ struct SomeContext {
items: Vec<String>,
}
struct Props {
name: String,
}
#[allow(unused)]
static Example: FC<Props> = |cpt| {
static Example: FC<()> = |cpt| {
todo!()
// let value = cx.use_context(|c: &SomeContext| c.items.last().unwrap());