mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 14:10:20 +00:00
remove things that werent meant to be in last commit
This commit is contained in:
parent
70136b22ea
commit
c9f04ac3d0
7 changed files with 0 additions and 157 deletions
|
@ -1,22 +0,0 @@
|
|||
//! The simplest example of a Dioxus app.
|
||||
//!
|
||||
//! In this example we:
|
||||
//! - import a number of important items from the prelude (launch, Element, rsx, div, etc.)
|
||||
//! - define a main function that calls the launch function with our app function
|
||||
//! - define an app function that returns a div element with the text "Hello, world!"
|
||||
//!
|
||||
//! The `launch` function is the entry point for all Dioxus apps. It takes a function that returns an Element. This function
|
||||
//! calls "launch" on the currently-configured renderer you have. So if the `web` feature is enabled, it will launch a web
|
||||
//! app, and if the `desktop` feature is enabled, it will launch a desktop app.
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
launch(app);
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
rsx! {
|
||||
div { "Hello, world!" }
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
//! The simplest example of a Dioxus app.
|
||||
//!
|
||||
//! In this example we:
|
||||
//! - import a number of important items from the prelude (launch, Element, rsx, div, etc.)
|
||||
//! - define a main function that calls the launch function with our app function
|
||||
//! - define an app function that returns a div element with the text "Hello, world!"
|
||||
//!
|
||||
//! The `launch` function is the entry point for all Dioxus apps. It takes a function that returns an Element. This function
|
||||
//! calls "launch" on the currently-configured renderer you have. So if the `web` feature is enabled, it will launch a web
|
||||
//! app, and if the `desktop` feature is enabled, it will launch a desktop app.
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
launch(app);
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
rsx! {
|
||||
div { "Hello, world!" }
|
||||
}
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
//! The simplest example of a Dioxus app.
|
||||
//!
|
||||
//! In this example we:
|
||||
//! - import a number of important items from the prelude (launch, Element, rsx, div, etc.)
|
||||
//! - define a main function that calls the launch function with our app function
|
||||
//! - define an app function that returns a div element with the text "Hello, world!"
|
||||
//!
|
||||
//! The `launch` function is the entry point for all Dioxus apps. It takes a function that returns an Element. This function
|
||||
//! calls "launch" on the currently-configured renderer you have. So if the `web` feature is enabled, it will launch a web
|
||||
//! app, and if the `desktop` feature is enabled, it will launch a desktop app.
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
launch(app);
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
let counter = use_signal(|| 0usize);
|
||||
|
||||
rsx! {
|
||||
button { onclick: move || counter += 1, "Increment Counter" }
|
||||
p { "{counter}" }
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
//! The simplest example of a Dioxus app.
|
||||
//!
|
||||
//! In this example we:
|
||||
//! - import a number of important items from the prelude (launch, Element, rsx, div, etc.)
|
||||
//! - define a main function that calls the launch function with our app function
|
||||
//! - define an app function that returns a div element with the text "Hello, world!"
|
||||
//!
|
||||
//! The `launch` function is the entry point for all Dioxus apps. It takes a function that returns an Element. This function
|
||||
//! calls "launch" on the currently-configured renderer you have. So if the `web` feature is enabled, it will launch a web
|
||||
//! app, and if the `desktop` feature is enabled, it will launch a desktop app.
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
launch(app);
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
rsx! {
|
||||
div { "Hello, world!" }
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
//! The simplest example of a Dioxus app.
|
||||
//!
|
||||
//! In this example we:
|
||||
//! - import a number of important items from the prelude (launch, Element, rsx, div, etc.)
|
||||
//! - define a main function that calls the launch function with our app function
|
||||
//! - define an app function that returns a div element with the text "Hello, world!"
|
||||
//!
|
||||
//! The `launch` function is the entry point for all Dioxus apps. It takes a function that returns an Element. This function
|
||||
//! calls "launch" on the currently-configured renderer you have. So if the `web` feature is enabled, it will launch a web
|
||||
//! app, and if the `desktop` feature is enabled, it will launch a desktop app.
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
launch(app);
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
rsx! {
|
||||
div { "Hello, world!" }
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
//! The simplest example of a Dioxus app.
|
||||
//!
|
||||
//! In this example we:
|
||||
//! - import a number of important items from the prelude (launch, Element, rsx, div, etc.)
|
||||
//! - define a main function that calls the launch function with our app function
|
||||
//! - define an app function that returns a div element with the text "Hello, world!"
|
||||
//!
|
||||
//! The `launch` function is the entry point for all Dioxus apps. It takes a function that returns an Element. This function
|
||||
//! calls "launch" on the currently-configured renderer you have. So if the `web` feature is enabled, it will launch a web
|
||||
//! app, and if the `desktop` feature is enabled, it will launch a desktop app.
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
launch(app);
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
rsx! {
|
||||
div { "Hello, world!" }
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
//! The simplest example of a Dioxus app.
|
||||
//!
|
||||
//! In this example we:
|
||||
//! - import a number of important items from the prelude (launch, Element, rsx, div, etc.)
|
||||
//! - define a main function that calls the launch function with our app function
|
||||
//! - define an app function that returns a div element with the text "Hello, world!"
|
||||
//!
|
||||
//! The `launch` function is the entry point for all Dioxus apps. It takes a function that returns an Element. This function
|
||||
//! calls "launch" on the currently-configured renderer you have. So if the `web` feature is enabled, it will launch a web
|
||||
//! app, and if the `desktop` feature is enabled, it will launch a desktop app.
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
launch(app);
|
||||
}
|
||||
|
||||
fn app() -> Element {
|
||||
rsx! {
|
||||
div { "Hello, world!" }
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue