aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-create-react-app/src/App.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello-create-react-app/src/App.jsx')
-rw-r--r--examples/hello-create-react-app/src/App.jsx25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/hello-create-react-app/src/App.jsx b/examples/hello-create-react-app/src/App.jsx
new file mode 100644
index 000000000..a675d389d
--- /dev/null
+++ b/examples/hello-create-react-app/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;