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

23 lines
341 B
Rust
Raw Normal View History

use dioxus_core_macro::{inline_props, Props};
fn main() {}
type Element<'a> = ();
2021-12-29 04:20:01 +00:00
pub struct Scope<'a, T = ()> {
props: &'a T,
}
2021-12-29 04:20:01 +00:00
// #[inline_props]
pub fn component<'a>(
cx: Scope<'a>,
chkk: String,
chkk2: String,
r: u32,
cat: &'a str,
drd: String,
e: String,
2021-12-29 04:20:01 +00:00
) -> Element<'a> {
let r = chkk.len();
}