Skip to content

Instantly share code, notes, and snippets.

@bjarneo
Created November 9, 2023 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjarneo/8f331e49e9721864e29dc46a5482f769 to your computer and use it in GitHub Desktop.
Save bjarneo/8f331e49e9721864e29dc46a5482f769 to your computer and use it in GitHub Desktop.
aase
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