From bbff192788e7bfc2f1473ab0f7206c2e96c76fc7 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Fri, 1 Aug 2025 16:33:35 -0500 Subject: [PATCH] Updated readme for the new syntax with rsx --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 157a9d4..4b28b99 100644 --- a/README.md +++ b/README.md @@ -21,14 +21,15 @@

```rust -use osui::{style::Transform, Screen}; +use osui::prelude::*; fn main() -> std::io::Result<()> { let screen = Screen::new(); - screen - .draw(format!("Hello, World")) - .component(Transform::center()); + rsx! { + "Hello, World" + } + .draw(&screen); screen.run() }