Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
matthunz committed May 23, 2024
1 parent bb67363 commit 3e9f897
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ giving this architecture its high performance.
struct App;

impl View for App {
fn body(&self, cx: &actuate::Scope) -> impl View {
fn body(&self, cx: &Scope) -> impl View {
let (count, set_count) = use_state(cx, || 0);

(
Expand Down
6 changes: 2 additions & 4 deletions web_example/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
use actuate::{
clone, use_state,
web::{div, text},
View,
clone, use_state, web::{div, text}, Scope, View
};

#[derive(Clone)]
struct App;

impl View for App {
fn body(&self, cx: &actuate::Scope) -> impl View {
fn body(&self, cx: &Scope) -> impl View {
let (count, set_count) = use_state(cx, || 0);

(
Expand Down

0 comments on commit 3e9f897

Please sign in to comment.