Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created July 3, 2019 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/e855cbeb9243b58852f769bdae1ac4bb to your computer and use it in GitHub Desktop.
Save goofmint/e855cbeb9243b58852f769bdae1ac4bb to your computer and use it in GitHub Desktop.
#[wasm_bindgen(start)]
pub fn run() {
log(&format!("Hello, {}!", name()));
let x = MyClass::new();
assert_eq!(x.number(), 42);
x.set_number(10);
log(&x.render());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment