isomorphic-rust/electron_percy_wasm/app/app.js

5 lines
189 B
JavaScript

import { main } from "./electron_percy_wasm"
let rootNode = document.getElementById('root')
rootNode.parentElement.replaceChild(main(), rootNode)
rootNode = document.getElementById('root')