Get most of yew in place

Doesn't actually run though...
This commit is contained in:
2018-09-08 22:36:48 -04:00
parent 65b7367258
commit ab6e31770d
44 changed files with 431 additions and 1972754 deletions

20
percy/src/lib.rs Normal file
View File

@ -0,0 +1,20 @@
#[macro_use]
extern crate virtual_dom_rs;
extern crate percy_webapis;
extern crate wasm_bindgen;
use percy_webapis::log;
use percy_webapis::Element;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
pub fn main() -> Element {
log("Entered Rust code");
let elem = html! {
<span> {"It is alive!"} </span>
};
elem.create_element()
}