/
githubmirror
/
traefik
Обзор
Документация
Войти
/
githubmirror
/
traefik
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
webui/src/index.tsx
21 строка
517 B
Gina A.
Migrate Traefik Proxy dashboard UI to React
28 май 2025, 12:26
Не верифицирован
28 май 2025, 12:26
f16fff5
Код
Авторство
О чём код?
import { createRoot } from 'react-dom/client' import App from './App' async function enableMocking() { if (import.meta.env.MODE !== 'development') { return } const { worker } = await import('./mocks/browser') // `worker.start()` returns a Promise that resolves // once the Service Worker is up and ready to intercept requests. return worker.start() } enableMocking().then(() => { const container = document.getElementById('root') const root = createRoot(container!) root.render(<App />) })