DEV Community

Olek
Olek

Posted on

working with React weather app

I have a problem with changing color. Maybe someone can explain to me where is my problem??

In my opinion this may be related with tag DIV I need to provide two classes for an element.
I know how to do this in CSS/SCSS, but I haven't encountered this when working with CSS/SCSS.modules.
I think this might be related with this row of code:
<div className={${styles.uv_index} ${styles[UVIColorCodding({ uvi: daily[0].uvi })]}}>
Does it correct??

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay