mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-21 09:36:33 +00:00
11 lines
280 B
JavaScript
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);
|
|
};
|