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)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up