mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Move crates to packages/* * Update Cargo.toml * Update links * Fix pull-request.yml * Update examples Cargo.toml * Update relative paths * Update tests * Fix path
20 lines
287 B
Rust
20 lines
287 B
Rust
use yew::prelude::*;
|
|
use yew_functional::{function_component};
|
|
|
|
#[derive(Clone, Properties, PartialEq)]
|
|
struct Props {
|
|
a: usize,
|
|
}
|
|
|
|
#[function_component(Comp)]
|
|
async fn comp(props: &Props) -> Html {
|
|
html! {
|
|
<p>
|
|
{ props.a }
|
|
</p>
|
|
}
|
|
}
|
|
|
|
|
|
fn main() {}
|