From 45474297f85dcee51c516f196bde82b149b83cce Mon Sep 17 00:00:00 2001 From: Nihar Patel Date: Mon, 9 Jun 2025 16:22:22 -0400 Subject: [PATCH] Complete Lab --- src/components/App.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index e0f227ac3..69d6548d0 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,12 +1,12 @@ import React from "react"; import { format } from "date-fns"; import ExampleComponent from "./ExampleComponent"; - +import TestComponent from "./TestComponent.js" // 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 +14,7 @@ function App() { self-contained chunks of JSX.

+
); }