Trait Component

Source
pub trait Component<T: Props, V, S> {
    // Required method
    fn create(self, props: T) -> V;
}
Expand description

A trait that is automatically implemented by all components.

Required Methods§

Source

fn create(self, props: T) -> V

Instantiate the component with the given props and reactive scope.

Implementors§

Source§

impl<F, T: Props, V> Component<T, V, ((),)> for F
where F: FnOnce(T) -> V,

Source§

impl<F, V> Component<(), V, ()> for F
where F: FnOnce() -> V,