2021-05-15 16:03:08 +00:00
|
|
|
use baller::Baller;
|
|
|
|
use dioxus_core::prelude::*;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let g = rsx! {
|
|
|
|
div {
|
|
|
|
crate::baller::Baller {}
|
|
|
|
baller::Baller {
|
|
|
|
}
|
|
|
|
Taller {
|
|
|
|
a: "asd"
|
|
|
|
}
|
|
|
|
baller::Baller {}
|
|
|
|
baller::Baller {}
|
2021-05-28 16:56:21 +00:00
|
|
|
Baller {
|
|
|
|
// todo: manual props
|
|
|
|
// {...BallerProps {}}
|
|
|
|
}
|
2021-05-15 16:03:08 +00:00
|
|
|
div {
|
|
|
|
a: "asd",
|
|
|
|
a: "asd",
|
|
|
|
a: "asd",
|
|
|
|
a: "asd",
|
|
|
|
div {
|
|
|
|
"asdas",
|
|
|
|
"asdas",
|
|
|
|
"asdas",
|
|
|
|
"asdas",
|
2021-05-28 16:56:21 +00:00
|
|
|
div {},
|
2021-05-15 16:03:08 +00:00
|
|
|
div {
|
2021-05-28 16:56:21 +00:00
|
|
|
// classes: {[ ("baller", true), ("maller", false) ]}
|
|
|
|
// class: "asdasd"
|
|
|
|
// class: "{customname}",
|
|
|
|
// class: {[("baller", true), ("hover", false)]}
|
2021-05-15 16:03:08 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
mod baller {
|
|
|
|
use super::*;
|
|
|
|
pub struct BallerProps {}
|
|
|
|
|
|
|
|
pub fn Baller(ctx: Context, props: &()) -> DomTree {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, PartialEq, Props)]
|
|
|
|
pub struct TallerProps {
|
|
|
|
a: &'static str,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn Taller(ctx: Context, props: &TallerProps) -> DomTree {
|
2021-05-28 16:56:21 +00:00
|
|
|
let b = true;
|
2021-05-15 16:03:08 +00:00
|
|
|
todo!()
|
|
|
|
}
|