diff options
author | 2021-10-13 00:28:20 -0700 | |
---|---|---|
committer | 2021-10-13 00:28:20 -0700 | |
commit | 9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c (patch) | |
tree | b421e988ac6c23bc5bff88a95dbf15722b35e01d /examples/react/src/App.jsx | |
parent | 88a5e2d34d25c3ac3d13a432bbd85daa075c4bcb (diff) | |
download | bun-9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c.tar.gz bun-9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c.tar.zst bun-9e3e9a2d6da9f33f2cfcdb10254f5ef37955019c.zip |
Clean up examples a little
Diffstat (limited to 'examples/react/src/App.jsx')
-rw-r--r-- | examples/react/src/App.jsx | 25 |
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; |