Skip to content

Instantly share code, notes, and snippets.

Created October 5, 2018 02:51
What would you like to do?
extern crate wasm_bindgen;
use wasm_bindgen::prelude::*;
extern "C" {
fn alert(s: &str);
pub fn greet(name: &str) {
alert(&format!("Hello, {}!", name));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment