pub trait Component {
type Props: Props;
type Element;
fn create_element(
self,
props: Self::Props,
key: Option<Key>
) -> Self::Element;
}Associated Types
Output of create_element.
Many components may return Option<Element> in UseRender::use_render
while return Element in create_element.
Thus this type parameter exists.