aboutsummaryrefslogtreecommitdiff
path: root/examples/react/src/App.jsx
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-15 20:08:40 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-15 20:08:40 -0700
commitcf2e81b03662c4b1a227d1bc9560a91826ef20e6 (patch)
tree0dc03cb97af1eb0615b8bb491696247962a81b73 /examples/react/src/App.jsx
parent0baa3b511e28cfb124f712e12d8f93474e6ce6fa (diff)
parentbf2732599cc7e45f320f75b38672c1a1fc3d5583 (diff)
downloadbun-cf2e81b03662c4b1a227d1bc9560a91826ef20e6.tar.gz
bun-cf2e81b03662c4b1a227d1bc9560a91826ef20e6.tar.zst
bun-cf2e81b03662c4b1a227d1bc9560a91826ef20e6.zip
Merge branch 'jarred/gen'
Diffstat (limited to 'examples/react/src/App.jsx')
-rw-r--r--examples/react/src/App.jsx25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/react/src/App.jsx b/examples/react/src/App.jsx
new file mode 100644
index 000000000..a675d389d
--- /dev/null
+++ b/examples/react/src/App.jsx
@@ -0,0 +1,25 @@
+import logo from "./logo.svg";
+import * as React from "react";
+import "./App.css";
+
+function App() {
+ const ms = Date.now() - parseInt(window.location.search.substring(1), 10);
+ return (
+ <div className="App">
+ <header className="App-header">
+ <img src={logo} className="App-logo" alt="logo" />
+ <h3>Loaded in {ms}ms.</h3>
+ <a
+ className="App-link"
+ href="https://reactjs.org"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ Learn React
+ </a>
+ </header>
+ </div>
+ );
+}
+
+export default App;