Skip to content

Instantly share code, notes, and snippets.

@hesan-aminiloo
Created July 15, 2022 12:11
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 hesan-aminiloo/239049e36e696219540cba02fdc2cce0 to your computer and use it in GitHub Desktop.
Save hesan-aminiloo/239049e36e696219540cba02fdc2cce0 to your computer and use it in GitHub Desktop.
const BookList = ({ items }) => {
return (
<ul>
{items.map((item) => (
<div>
<Image key={item.title} cover={item.bookCover} />
<h1>{item.title}</h1>
</div>
))}
</ul>
);
};
const PodcastList = ({ items }) => {
return (
<ul>
{items.map((item) => (
<div>
<Image key={item.title} cover={item.podcastCover} />
<h1>{item.title}</h1>
</div>
))}
</ul>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment