initial setting

This commit is contained in:
jangheon Pyo
2024-01-18 11:01:57 +09:00
parent a4d6043284
commit 9eda9fb0e6
126 changed files with 3724 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { createRoot } from "react-dom/client";
import { store } from "./store/store";
import { Provider } from "react-redux";
import App from "./App";
let appElement = (
<Provider store={store}>
<App />
</Provider>
);
// In a browser environment, render instead of exporting
if (typeof window === "object") {
createRoot(document.getElementById("root")).render(appElement);
appElement = null;
window.store = store;
}
export default appElement;