mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
20 lines
519 B
TypeScript
20 lines
519 B
TypeScript
import { i18n } from "@browser-skill/i18n";
|
|
import { I18nextProvider } from "@browser-skill/i18n/react";
|
|
import React from "react";
|
|
import ReactDOM from "react-dom/client";
|
|
import { App } from "./App";
|
|
import "./style.css";
|
|
|
|
const container = document.getElementById("root");
|
|
if (!container) {
|
|
throw new Error("[browser-skill] popup root element missing");
|
|
}
|
|
|
|
ReactDOM.createRoot(container).render(
|
|
<React.StrictMode>
|
|
<I18nextProvider i18n={i18n}>
|
|
<App />
|
|
</I18nextProvider>
|
|
</React.StrictMode>,
|
|
);
|