Philip Peterson e6a3ae7301
Move top-level crates to packages/<crate> (#1680)
* Move crates to packages/*

* Update Cargo.toml

* Update links

* Fix pull-request.yml

* Update examples Cargo.toml

* Update relative paths

* Update tests

* Fix path
2021-01-12 11:32:48 +08:00

31 lines
546 B
Rust

use yew::prelude::*;
use yew_functional::function_component;
#[derive(Clone, Properties, PartialEq)]
struct Props {
a: usize,
}
#[function_component(Comp)]
fn comp(props: &Props, invalid: String) -> Html {
html! {
<p>
{ props.a }
{ invalid }
</p>
}
}
#[function_component(Comp)]
fn comp3(props: &Props, invalid: String, another_invalid: u32) -> Html {
html! {
<p>
{ props.a }
{ invalid }
{ another_invalid }
</p>
}
}
fn main() {}