mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-13 10:00:14 +01:00
f48e6b1a3e
* chore: add @ as alias for frontend root * fix: remove bad tag
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
import React from "react";
|
|
import ReactDOM from "react-dom/client";
|
|
import { BrowserRouter as Router } from "react-router-dom";
|
|
import App from "@/App.jsx";
|
|
import "@/index.css";
|
|
const isDev = process.env.NODE_ENV !== "production";
|
|
const REACTWRAP = isDev ? React.Fragment : React.StrictMode;
|
|
|
|
ReactDOM.createRoot(document.getElementById("root")).render(
|
|
<REACTWRAP>
|
|
<Router>
|
|
<App />
|
|
</Router>
|
|
</REACTWRAP>
|
|
);
|