How can I do use linear gradient vendor prefixes in react? Is possible to do this without using any external package?
This doesn't work because an object can't have keys with same name so no style is applied to the div.
I can't use classes because I will use component variables inside this code.
const sizeBackground = {
background: `-webkit-linear-gradient(left, #000 50%, #fff 50%)`,
background: `-moz-linear-gradient(left, #000 50%, #fff 50%)`,
background: `-ms-linear-gradient(left, #000 50%, #fff 50%)`,
background: `linear-gradient(left, #000 50%, #fff 50%)`,
}
<div style={sizeBackground} >