mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-21 09:36:33 +00:00

* Fix eslint import extension * Update eslint hound * Enable no unresolved for normal usage
11 lines
283 B
JavaScript
11 lines
283 B
JavaScript
import { h, render } from 'preact';
|
|
import Script from './script.js';
|
|
|
|
window.ScriptEditor = function (mountEl, props, mergeEl) {
|
|
return render(h(Script, props), mountEl, mergeEl);
|
|
};
|
|
|
|
window.unmountPreact = function (mountEl, mergeEl) {
|
|
render(() => null, mountEl, mergeEl);
|
|
};
|