The example above is a contrived demonstration. In my app I need to apply the styles via binding because they are part of an array of elements each with different background images, and I need to use !important on some of them to override an external stylesheet.
My only workaround was to apply different classes via binding, and set the styles in a stylesheet.
Looks like this is a wontfix in https://github.com/facebook/react/issues/1881, but I thought I'd mention it here in case people have the same issue and look here first.
The example above is a contrived demonstration. In my app I need to apply the styles via binding because they are part of an array of elements each with different background images, and I need to use !important on some of them to override an external stylesheet.
My only workaround was to apply different classes via binding, and set the styles in a stylesheet.