Nothing works, I dont understand modern javascript
This commit is contained in:
parent
72666e9258
commit
d5cf369a75
139 changed files with 10138 additions and 55 deletions
19
crates/librqbit/webui/node_modules/preact/compat/client.js
generated
vendored
Normal file
19
crates/librqbit/webui/node_modules/preact/compat/client.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const { render, hydrate, unmountComponentAtNode } = require('preact/compat');
|
||||
|
||||
function createRoot(container) {
|
||||
return {
|
||||
render(children) {
|
||||
render(children, container);
|
||||
},
|
||||
unmount() {
|
||||
unmountComponentAtNode(container);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
exports.createRoot = createRoot;
|
||||
|
||||
exports.hydrateRoot = function (container, children) {
|
||||
hydrate(children, container);
|
||||
return createRoot(container);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue