anything-llm/frontend/src/main.jsx
Timothy Carambat f48e6b1a3e
chore: add @ as alias for frontend root (#414)
* chore: add @ as alias for frontend root

* fix: remove bad tag
2023-12-07 09:09:01 -08:00

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>
);