Integrate the editor from the old attempt into the new build.
This commit is contained in:
parent
323019136c
commit
c644845d61
@ -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"));
|
||||
});
|
||||
|
@ -42,4 +42,7 @@ module.exports = {
|
||||
experiments: {
|
||||
asyncWebAssembly: true
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user