small changes

This commit is contained in:
2025-01-18 23:39:21 +01:00
parent ab5554abce
commit fb82c611df
3 changed files with 42 additions and 16 deletions
+8 -8
View File
@@ -1,21 +1,21 @@
use osui::prelude::*;
fn main() -> osui::Result<()> {
let mut con = console::init(false)?;
let mut con = console::init(true)?;
con.run(app())?;
console::end()
con.end()
}
pub fn app() -> Element {
rsx! {
test {} ()
}
}
let count = use_state(0);
pub fn test() -> Element {
rsx! {
"ABC" (x-center y-center)
if (count == 0) {
"ok"
}
"{count}"
}
}