2
0
Fork 0
mirror of https://github.com/DioxusLabs/dioxus synced 2025-01-06 01:38:45 +00:00
dioxus/packages/core-macro/examples/inline_props.rs

23 lines
321 B
Rust
Raw Normal View History

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