mirror of
https://github.com/mivodev/mivodev.github.io.git
synced 2026-01-26 21:41:53 +07:00
Fix dependencies: Add flag-icons, tailwind directives, and postcss config
This commit is contained in:
21
node_modules/preact/compat/client.js
generated
vendored
Normal file
21
node_modules/preact/compat/client.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
const { render, hydrate, unmountComponentAtNode } = require('preact/compat');
|
||||
|
||||
function createRoot(container) {
|
||||
return {
|
||||
// eslint-disable-next-line
|
||||
render: function (children) {
|
||||
render(children, container);
|
||||
},
|
||||
// eslint-disable-next-line
|
||||
unmount: function () {
|
||||
unmountComponentAtNode(container);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
exports.createRoot = createRoot;
|
||||
|
||||
exports.hydrateRoot = function (container, children) {
|
||||
hydrate(children, container);
|
||||
return createRoot(container);
|
||||
};
|
||||
Reference in New Issue
Block a user