I want to give each CategoryCard
div a different background-image
.
How can I solve this problems with styled components? I use React and Typescript.
{this.MainChannels.map(item => {
return (
<CategoryCard key={item._id} onClick={() => this.handleChannel(item.name)}>
{item.name}
</CategoryCard>)
})}
the URL's of the images are locally it means my pictures are stored on my computer