Skip to content

Commit

Permalink
Add links to meaning
Browse files Browse the repository at this point in the history
  • Loading branch information
maskeynihal committed Jan 2, 2023
1 parent 0b622fd commit c482f55
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,25 @@ export function App() {

return (
<>
<h1>Word of the day</h1>

{isLoading ? (
<h3>Loading ...</h3>
<div>
<h1>Word of the day</h1>
<h3>Loading ...</h3>
</div>
) : wordOfTheDay ? (
<div>
<h2>{wordOfTheDay.word}</h2>
<h5>Word of the day</h5>

<h1>{wordOfTheDay.word}</h1>
<p>{wordOfTheDay.description}</p>

<a
href={`https://dictionary.cambridge.org/dictionary/english/${wordOfTheDay.word}`}
target="_blank"
title="More details"
>
{">>"}
</a>
</div>
) : (
<h3>No Word of the day, Yet!!</h3>
Expand Down

0 comments on commit c482f55

Please sign in to comment.