I added an inline style element to a div tag in a react component along with a className element. The className property renders but the style is not displaying. I am setting from an object variable. However, if I set the style element directly using double curly braces it works, just not working from a variable.
Here is an image of the object value I am using to set the style element.
This shows where the style element should be getting set as the component is rendering, the styleElement object has a value set at this point
This shows the component post rendering and the style element is not present
What would prevent the style element from rendering even though is it populated from an object containing CSS properties?


