1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use crate::prelude::*;

pub struct App<Comp, Msg>
where
    Comp: Component<Msg>,
    Msg: Clone + 'static,
{
    pub root: Shared<Comp>,
    phantom: std::marker::PhantomData<Msg>,
}

impl<Comp, Msg> App<Comp, Msg>
where
    Comp: Component<Msg>,
    Msg: Clone,
{
    pub fn new(root: Shared<Comp>) -> Self {
        Self {
            root,
            phantom: std::marker::PhantomData,
        }
    }
}