anything-llm/frontend/src/main.jsx

16 lines
428 B
React
Raw Normal View History

2023-06-04 04:28:07 +02:00
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";
2023-06-04 04:28:07 +02:00
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>
);