frontend/js/script-editor/script-editor.js
Paulus Schoutsen faf576d43d Add script editor (#393)
* Add script editor

* Cleanup
2017-08-15 22:09:43 -07:00

11 lines
280 B
JavaScript

import { h, render } from 'preact';
import Script from './script';
window.ScriptEditor = function (mountEl, props, mergeEl) {
return render(h(Script, props), mountEl, mergeEl);
};
window.unmountPreact = function (mountEl, mergeEl) {
render(() => null, mountEl, mergeEl);
};