frontend/js/editor/editor.js
2017-07-16 23:31:19 -07:00

11 lines
296 B
JavaScript

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