debugp
parent
7749248e5f
commit
ebe38c317d
|
@ -3,12 +3,16 @@ import ReactDOM from "react-dom/client";
|
||||||
import { createBrowserHistory } from "history";
|
import { createBrowserHistory } from "history";
|
||||||
import { App } from "./App";
|
import { App } from "./App";
|
||||||
|
|
||||||
const renderResistants = () =>
|
console.log("Starting app");
|
||||||
|
|
||||||
|
const renderResistants = () => {
|
||||||
|
console.log("Rendering app");
|
||||||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<App />
|
<App />
|
||||||
</React.StrictMode>
|
</React.StrictMode>
|
||||||
);
|
);
|
||||||
|
};
|
||||||
|
|
||||||
const browserHistory = createBrowserHistory();
|
const browserHistory = createBrowserHistory();
|
||||||
browserHistory.listen(() => {
|
browserHistory.listen(() => {
|
||||||
|
@ -17,3 +21,5 @@ browserHistory.listen(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
renderResistants();
|
renderResistants();
|
||||||
|
|
||||||
|
console.log("done");
|
||||||
|
|
Loading…
Reference in New Issue