feat: mvoe away from compound context
This commit is contained in:
1 parent
bfdcb20437
commit
a2c7d17b05
103 files changed
+309
-293
No files matched your search
@@ -49,7 +49,7 @@ const NONE_ELEMENT: Option<()> = None;
|
||||
use baller::Baller;
|
||||
use dioxus::prelude::*;
|
||||
|
||||
pub static Example: FC<()> = |cx| {
|
||||
pub static Example: FC<()> = |cx, props| {
|
||||
let formatting = "formatting!";
|
||||
let formatting_tuple = ("a", "b");
|
||||
let lazy_fmt = format_args!("lazily formatted text");
|
||||
@@ -180,10 +180,11 @@ pub static Example: FC<()> = |cx| {
|
||||
|
||||
mod baller {
|
||||
use super::*;
|
||||
#[derive(PartialEq, Props)]
|
||||
pub struct BallerProps {}
|
||||
|
||||
/// This component totally balls
|
||||
pub fn Baller(cx: Context<()>) -> DomTree {
|
||||
pub fn Baller<'a>(cx: Context<'a>, props: &BallerProps) -> DomTree<'a> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
@@ -194,7 +195,7 @@ pub struct TallerProps {
|
||||
}
|
||||
|
||||
/// This component is taller than most :)
|
||||
pub fn Taller(cx: Context<TallerProps>) -> DomTree {
|
||||
pub fn Taller<'a>(cx: Context<'a>, props: &'a TallerProps) -> DomTree<'a> {
|
||||
let b = true;
|
||||
todo!()
|
||||
}
|
||||
Reference in new issue
Block a user