Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
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 (
<div className="App">
<h1>{format(new Date(), "MMMM do yyyy, h:mm:ss a")}</h1>
<h1>Now</h1>
<p className="App-intro">
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
HTML, and also allows us to add in components, which are separate,
self-contained chunks of JSX.
</p>
<ExampleComponent />
<TestComponent />
</div>
);
}
Expand Down
16 changes: 16 additions & 0 deletions src/components/ExampleComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,20 @@ function ExampleComponent() {
);
}

function TestComponent() {
return (
<div className="video">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/5TbUxGZtwGI"
frameBorder="0"
allow="autoplay; encrypted-media"
title="time video"
allowFullScreen
></iframe>
</div>
);
}

export default ExampleComponent;