mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-27 18:15:35 +03:00
4761ea36bc
Change-Id: I39ad44666fe958dd4f6c8f0d88b3dc960d7cb6c7
18 lines
421 B
TypeScript
18 lines
421 B
TypeScript
import React from "react";
|
|
|
|
import { createRoot } from "react-dom/client";
|
|
|
|
import App from "./App";
|
|
import { AppContext } from "./AppContext";
|
|
|
|
fetch("config.json")
|
|
.then(res => res.json())
|
|
.then(props =>
|
|
createRoot(document.getElementById("root")).render(
|
|
<React.StrictMode>
|
|
<AppContext.Provider value={props}>
|
|
<App />
|
|
</AppContext.Provider>
|
|
</React.StrictMode>
|
|
)
|
|
);
|