deploy: ebd4cc0010
This commit is contained in:
22
node_modules/preact/compat/client.mjs
generated
vendored
22
node_modules/preact/compat/client.mjs
generated
vendored
@@ -1,22 +0,0 @@
|
||||
import { render, hydrate, unmountComponentAtNode } from 'preact/compat';
|
||||
|
||||
export function createRoot(container) {
|
||||
return {
|
||||
render(children) {
|
||||
render(children, container);
|
||||
},
|
||||
unmount() {
|
||||
unmountComponentAtNode(container);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export function hydrateRoot(container, children) {
|
||||
hydrate(children, container);
|
||||
return createRoot(container);
|
||||
}
|
||||
|
||||
export default {
|
||||
createRoot,
|
||||
hydrateRoot
|
||||
};
|
||||
Reference in New Issue
Block a user