diff --git a/src/main.rs b/src/main.rs index aa083f7..1f3e917 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,22 +4,17 @@ use osui::{ }; fn main() { - let some_text = app(ComponentParams { - children: vec![], - expr: "".to_string(), - }); - let doc = oml!(div { some_text; }); + let doc = oml!(div {app()}); println!("{:?}", doc); } -fn app(_: ComponentParams) -> Box
{ - oml!( +fn app(_: ComponentParams) -> Div { + *oml!( // Components (C) div { // Props, With components (PC) div () { - // Props (P) text(/* Properties go here, Example: x = 20 y = 5 */) }