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
19 lines
295 B
Rust
19 lines
295 B
Rust
use yew::prelude::*;
|
|
use yew_functional::function_component;
|
|
|
|
#[derive(Clone, Properties, PartialEq)]
|
|
struct Props {
|
|
a: usize,
|
|
}
|
|
|
|
#[function_component(Comp)]
|
|
const fn comp<P: Properties>(props: &P) -> Html {
|
|
html! {
|
|
<p>
|
|
{ props.a }
|
|
</p>
|
|
}
|
|
}
|
|
|
|
fn main() {}
|