aboutsummaryrefslogtreecommitdiff
path: root/examples/react/src/index.jsx
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-13 00:28:20 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-13 00:28:20 -0700
commit9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c (patch)
treeb421e988ac6c23bc5bff88a95dbf15722b35e01d /examples/react/src/index.jsx
parent88a5e2d34d25c3ac3d13a432bbd85daa075c4bcb (diff)
downloadbun-9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c.tar.gz
bun-9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c.tar.zst
bun-9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c.zip
Clean up examples a little
Diffstat (limited to 'examples/react/src/index.jsx')
-rw-r--r--examples/react/src/index.jsx17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/react/src/index.jsx b/examples/react/src/index.jsx
new file mode 100644
index 000000000..26419cdcb
--- /dev/null
+++ b/examples/react/src/index.jsx
@@ -0,0 +1,17 @@
+import * as React from "react";
+import ReactDOM from "react-dom";
+import "./index.css";
+import App from "./App";
+import reportWebVitals from "./reportWebVitals";
+
+ReactDOM.render(
+ <React.StrictMode>
+ <App />
+ </React.StrictMode>,
+ document.getElementById("root")
+);
+
+// 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();