From 2a563070aa835750ead83bf2602eb0bef383af47 Mon Sep 17 00:00:00 2001 From: elizabethwilby Date: Mon, 8 Jun 2026 10:42:07 -0400 Subject: [PATCH] finished react hooks react app example --- .tool-versions | 1 + src/components/App.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .tool-versions diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 000000000..ae96860d9 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 16.20.2 diff --git a/src/components/App.js b/src/components/App.js index e0f227ac3..51299b8a1 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,12 +1,13 @@ import React from "react"; import { format } from "date-fns"; import ExampleComponent from "./ExampleComponent"; +import TestComponent from "./TestComponent"; // Add your code own within the return statement function App() { return (
-

{format(new Date(), "MMMM do yyyy, h:mm:ss a")}

+

Now

In React apps, we write JSX - it looks like HTML, and uses a lot of HTML syntax. JSX lets us include JavaScript functions right along with the @@ -14,6 +15,7 @@ function App() { self-contained chunks of JSX.

+
); }