Add organic wasm module.

This commit is contained in:
Tom Alexander
2024-01-21 18:30:20 -05:00
parent b232c8d7da
commit ff62983ac0
5 changed files with 9 additions and 22 deletions

View File

@@ -1,4 +1,8 @@
import React from "react";
import ReactDOM from "react-dom";
import init, { parse_org } from "../../organic/target/wasm32-unknown-unknown/js/wasm";
ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById("root"));
init().then(() => {
console.log(parse_org("foo"));
ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById("root"));
});