diff --git a/src/components/App.js b/src/components/App.js index e0f227ac3..65d6ca317 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")}

+

{format(new Date(), "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.

+
); } diff --git a/src/components/ExampleComponent.js b/src/components/ExampleComponent.js index 9a00ca70d..31eab3450 100644 --- a/src/components/ExampleComponent.js +++ b/src/components/ExampleComponent.js @@ -10,7 +10,9 @@ function ExampleComponent() { />

Whoa!

+ ); } + export default ExampleComponent;