From 27593bb131efb9202cfa602cb8a59f3160e4a340 Mon Sep 17 00:00:00 2001 From: Dev-PeterWachira Date: Mon, 20 Jan 2025 17:56:12 +0300 Subject: [PATCH] React App --- src/components/App.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/App.js b/src/components/App.js index e0f227ac3..14d93d84a 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,8 @@ function App() { self-contained chunks of JSX.

+ +
); }