Trait sycamore::component::Component [−][src]
pub trait Component<G: GenericNode> {
type Props;
const NAME: &'static str;
fn create_component(props: Self::Props) -> View<G>;
}
Expand description
Trait that is implemented by components. Should not be implemented manually. Use the
component
macro instead.
Associated Types
Associated Constants
Required methods
fn create_component(props: Self::Props) -> View<G>
fn create_component(props: Self::Props) -> View<G>
Create a new component with an instance of the properties.