Feat: push new component API and context API
This commit is contained in:
1 parent
8329268d39
commit
125f5426a4
14 files changed
+432
-264
No files matched your search
@@ -0,0 +1,19 @@
|
||||
//! An alternative function syntax
|
||||
//!
|
||||
|
||||
use std::marker::PhantomData;
|
||||
|
||||
use dioxus_core::prelude::VNode;
|
||||
|
||||
fn main() {}
|
||||
|
||||
struct Context2<'a> {
|
||||
_p: PhantomData<&'a ()>,
|
||||
}
|
||||
|
||||
type FC2<'a, 'b, 'c: 'a + 'b, P> = fn(Context2<'a>, &'b P) -> VNode<'c>;
|
||||
|
||||
static Example: FC2<()> = |ctx, props| {
|
||||
//
|
||||
todo!()
|
||||
};
|
||||
Reference in new issue
Block a user