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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay