dioxus/packages/core-macro/examples/prop_test.rs

20 lines
324 B
Rust
Raw Normal View History

fn main() {}
pub mod dioxus {
pub mod prelude {
pub trait Properties {
type Builder;
fn builder() -> Self::Builder;
}
}
}
#[derive(dioxus_core_macro::Props)]
struct SomeProps {
a: String,
}
#[derive(dioxus_core_macro::Props)]
struct SomePropsTwo<'a> {
a: &'a str,
}