Skip to content

Commit

Permalink
Working example
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsttt committed May 22, 2022
1 parent 8182c40 commit 0c3b29e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
dist
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yew App</title>
</head>
<body>

</body>
</html>
13 changes: 12 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
use yew::prelude::*
use yew::prelude::*;

#[function_component(App)]
fn app() -> Html {
html! {
<h1>{"Hello"}</h1>
}
}

fn main() {
yew::start_app::<App>();
}

0 comments on commit 0c3b29e

Please sign in to comment.