/
githubmirror
/
preact
Обзор
Документация
Войти
/
githubmirror
/
preact
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
compat/client.js
21 строка
479 B
Ryan Christian
chore: Silence ESLint
05 май 2024, 18:42
Не верифицирован
05 май 2024, 18:42
41ce33b
Код
Авторство
О чём код?
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); };