Feat: finally solve the component lifetime problem <3

This commit is contained in:
Jonathan Kelley committed 2021-02-20 22:57:13 -05:00
1 parent 7a6aabe4f3
commit bdc25b581b
4 files changed
+89 -22

No files matched your search

+4
View File
@@ -41,6 +41,10 @@ pub struct Context<'src> {
}
impl<'a> Context<'a> {
pub fn props<P>() -> &'a P {
todo!()
}
// impl<'a, PropType> Context<'a, PropType> {
/// Access the children elements passed into the component
pub fn children(&self) -> Vec<VNode> {