mirror of
https://github.com/oneclickvirt/oneclickvirt.github.io.git
synced 2026-05-24 11:31:24 +08:00
14 lines
275 B
JavaScript
14 lines
275 B
JavaScript
const { render, hydrate } = require('preact/compat');
|
|
|
|
exports.createRoot = function(container) {
|
|
return {
|
|
render(children) {
|
|
return render(children, container);
|
|
}
|
|
};
|
|
};
|
|
|
|
exports.hydrateRoot = function(container, children) {
|
|
return hydrate(children, container);
|
|
};
|