isomorphic-rust/percy_patched_webpack/src/lib.rs
Bradlee Speice ab6e31770d Get most of yew in place
Doesn't actually run though...
2018-09-08 22:36:48 -04:00

20 lines
354 B
Rust

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