From fb4feea8c378704a1da6ec5bbdd3066b9a5f751f Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 5 Sep 2021 15:18:13 -0700 Subject: aarch64 build.zig Former-commit-id: 701ec4668e8f8276c207d92487633857d2db5ead --- examples/hello-create-react-app/src/App.jsx | 25 +++++++++++++++++++++++++ examples/hello-create-react-app/src/index.jsx | 17 +++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 examples/hello-create-react-app/src/App.jsx create mode 100644 examples/hello-create-react-app/src/index.jsx (limited to 'examples/hello-create-react-app/src') 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 ( +
+
+ logo +

Loaded in {ms}ms.

+ + Learn React + +
+
+ ); +} + +export default App; diff --git a/examples/hello-create-react-app/src/index.jsx b/examples/hello-create-react-app/src/index.jsx new file mode 100644 index 000000000..26419cdcb --- /dev/null +++ b/examples/hello-create-react-app/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( + + + , + 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(); -- cgit v1.2.3