writer-rewrite 01

This commit is contained in:
2024-12-27 11:03:54 -06:00
parent 33bd0742ff
commit dac3acdceb
4 changed files with 54 additions and 43 deletions
+5 -8
View File
@@ -6,13 +6,10 @@ fn main() {
#[component]
pub fn App() {
rsx! {
async {
sleep(3000);
ersx!(text {
"OK"
})
}
text { "Hello world!" }
ersx! {
text { style: style! {
x: 30 px,
y: 4 px
}, "hello, world" }
}
}