Skip to content

Commit

Permalink
Restart with dioxus
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed Oct 10, 2023
1 parent 56d8afa commit 68bb2a1
Show file tree
Hide file tree
Showing 21 changed files with 508 additions and 2,077 deletions.
482 changes: 482 additions & 0 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ winit = { version = "0.28.7", optional = true }
interpolation = "0.3.0"
tokio = { version = "1.32.0", features = ["full"] }
thiserror = "1.0.49"
dioxus = "0.4.0"

31 changes: 0 additions & 31 deletions examples/animation.rs

This file was deleted.

47 changes: 0 additions & 47 deletions examples/counter.rs

This file was deleted.

20 changes: 10 additions & 10 deletions examples/hello.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use taffy::style::{AlignItems, JustifyContent};
use viewbuilder::{Context, Element, Error, NodeKey};
use viewbuilder::prelude::*;

fn app(cx: &mut Context) -> NodeKey {
Element::new()
.align_items(AlignItems::Center)
.justify_content(JustifyContent::Center)
.child(cx.insert("Hello World!"))
.build(cx)
fn app(cx: Scope) -> Element {
cx.render(rsx! {
view {
background_color: 12,
"Hello World!"
}
})
}

fn main() -> Result<(), Error> {
viewbuilder::run((), app)
fn main() {
viewbuilder::run(app)
}
27 changes: 0 additions & 27 deletions examples/multi_window.rs

This file was deleted.

27 changes: 0 additions & 27 deletions examples/scroll.rs

This file was deleted.

190 changes: 0 additions & 190 deletions src/context.rs

This file was deleted.

Loading

0 comments on commit 68bb2a1

Please sign in to comment.