Created
November 9, 2023 10:12
-
-
Save bjarneo/8f331e49e9721864e29dc46a5482f769 to your computer and use it in GitHub Desktop.
aase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function MyApp() { | |
const article = { | |
title: "This is awesome", | |
description: "This is too", | |
time: "05.10.1987", | |
url: "https://bjarne.oever.li" | |
} | |
return ( | |
<div> | |
<h2>{article.title}</h2> | |
<p>{article.description}</p> | |
<time>{article.time}</time> | |
<br /> | |
<a href={article.url}>Klikk på meg</a> | |
</div> | |
); | |
} | |
/* | |
const articleLink = document.createElement('a'); | |
articleLink.classList.add('article-url'); | |
link = document.createTextNode(article.title); | |
articleLink.appendChild(link); | |
articleLink.title = article.title; | |
articleLink.href = article.url; | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment