pub trait Component: 'static {
type Rendered: RenderOnce;
// Required method
fn render(self, cx: &mut WindowContext<'_>) -> Self::Rendered;
}
pub trait Component: 'static {
type Rendered: RenderOnce;
// Required method
fn render(self, cx: &mut WindowContext<'_>) -> Self::Rendered;
}