proto-module-actu-react
Jalil Arfaoui 2023-02-25 22:12:59 +01:00
parent 7749248e5f
commit ebe38c317d
1 changed files with 7 additions and 1 deletions

View File

@ -3,12 +3,16 @@ import ReactDOM from "react-dom/client";
import { createBrowserHistory } from "history";
import { App } from "./App";
const renderResistants = () =>
console.log("Starting app");
const renderResistants = () => {
console.log("Rendering app");
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<App />
</React.StrictMode>
);
};
const browserHistory = createBrowserHistory();
browserHistory.listen(() => {
@ -17,3 +21,5 @@ browserHistory.listen(() => {
});
renderResistants();
console.log("done");