How to partially update className?

Here is an example where the background color of a html.Div is changed depending on a Input() of a callback:

Maybe this gives you an idea.