pub trait ComponentExt: Component {
    fn with(properties: Self::Properties) -> Layout { ... }
    fn with_key(
        key: impl Into<ComponentKey>,
        properties: Self::Properties
    ) -> Layout { ... } fn item_with(flex: FlexBasis, properties: Self::Properties) -> Item { ... } fn item_with_key(
        flex: FlexBasis,
        key: impl Into<ComponentKey>,
        properties: Self::Properties
    ) -> Item { ... } }

Provided Methods

Creates a component definition from its Properties.

Creates a component definition from its Properties, using a custom identity specified by a key (in addition to the component’s ancestors).

Useful to avoid rerendering components of the same type in a container when changing the number of items in the container.

Implementors