Integrate the editor from the old attempt into the new build.

This commit is contained in:
Tom Alexander 2024-01-21 19:46:23 -05:00
parent 323019136c
commit c644845d61
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
5 changed files with 5 additions and 1 deletions

View File

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

View File

@ -42,4 +42,7 @@ module.exports = {
experiments: {
asyncWebAssembly: true
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
};