//! Example: README.md showcase //! //! The example from the README.md. use dioxus::prelude::*; fn main() { dioxus::desktop::launch(app); } fn app(cx: Scope) -> Element { cx.render(rsx! { div { h1 { "Form" } form { oninput: move |ev| println!("{:?}", ev), input { r#type: "text", name: "username" } input { r#type: "text", name: "full-name" } input { r#type: "password", name: "password" } } } }) }