aboutsummaryrefslogtreecommitdiffstats
path: root/public/projects/react-small-apps/apps/notebook/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/projects/react-small-apps/apps/notebook/src/index.js')
-rw-r--r--public/projects/react-small-apps/apps/notebook/src/index.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/public/projects/react-small-apps/apps/notebook/src/index.js b/public/projects/react-small-apps/apps/notebook/src/index.js
new file mode 100644
index 0000000..7f2be6e
--- /dev/null
+++ b/public/projects/react-small-apps/apps/notebook/src/index.js
@@ -0,0 +1,20 @@
+import "modern-normalize";
+import React from "react";
+import { render } from "react-dom";
+import { BrowserRouter } from "react-router-dom";
+import reportWebVitals from "./reportWebVitals";
+import App from "./App";
+
+render(
+ <BrowserRouter basename={process.env.PUBLIC_URL}>
+ <React.StrictMode>
+ <App />
+ </React.StrictMode>
+ </BrowserRouter>,
+ document.getElementById("app")
+);
+
+// If you want to start measuring performance in your app, pass a function
+// to log results (for example: reportWebVitals(console.log))
+// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
+reportWebVitals();