dioxus/examples
2022-02-05 16:45:40 -06:00
..
components.rs fix: cargo fmt and readme update 2022-02-04 17:57:00 -05:00
example.png wip: add an image 2022-01-01 01:08:31 -05:00
frame.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
keys.rs changed onscroll to onwheel 2022-02-05 16:45:40 -06:00
layouts.rs fix: cargo fmt and readme update 2022-02-04 17:57:00 -05:00
list.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
margin.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
quadrants.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
readme.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
strecher.rs feat: wire up stretch into place 2021-12-31 23:53:37 -05:00
task.rs added component rendering and updated dioxus version 2022-02-04 07:24:02 -06:00
text.rs updates: move to stable versions 2022-01-12 09:40:36 -05:00
ui.rsx updates: move to stable versions 2022-01-12 09:40:36 -05:00

use dioxus::prelude::*;

fn main() {
    rink::launch(app);
}

fn app(cx: Scope) -> Element {
    cx.render(rsx! {
        div {
            width: "100%",
            height: "10px",
            background_color: "red",
            justify_content: "center",
            align_items: "center",

            "Hello world!"
        }
    })
}