summaryrefslogtreecommitdiff
path: root/my-app/src/index.tsx
diff options
context:
space:
mode:
authorphyscik <mynameisgennadiy@vk.com>2026-04-10 19:24:08 +0500
committerphyscik <mynameisgennadiy@vk.com>2026-04-10 19:24:40 +0500
commitd5df390bc6e4d2860cf0bb36ffe8e0584ed96f5d (patch)
tree4c7205c88cf5111e68b99902155e47aa1da0bfb0 /my-app/src/index.tsx
react app init
Diffstat (limited to 'my-app/src/index.tsx')
-rw-r--r--my-app/src/index.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/my-app/src/index.tsx b/my-app/src/index.tsx
new file mode 100644
index 0000000..2959569
--- /dev/null
+++ b/my-app/src/index.tsx
@@ -0,0 +1,20 @@
+import React from 'react';
+import ReactDOM from 'react-dom/client';
+import './index.css';
+import App from './App';
+import reportWebVitals from './reportWebVitals';
+
+const root = ReactDOM.createRoot(
+ document.getElementById('root') as HTMLElement
+);
+
+root.render(
+ <React.StrictMode>
+ <App />
+ </React.StrictMode>
+);
+
+// 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();