yew_quick 0.2.2

yew 框架快速开发组件库
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use yew::{function_component, html, Children, Html, Properties};

#[derive(Properties, Clone, PartialEq)]
pub struct BlockProps {
    pub children: Children,
}

#[function_component]
pub fn Block(props: &BlockProps) -> Html {
    html! {
        <>
        { for props.children.iter() }
        </>
    }
}