Get Electron/Percy/WASM running

This commit is contained in:
2018-08-25 18:18:42 -04:00
commit e53a938d5a
13 changed files with 7992 additions and 0 deletions

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()
}