I have below CSS and mark up in reactJS and want to update background property dynamically. Let's say for few cases, it should be red and for few black.
goodOne: {
position: 'relative',
'&:before': {
position: 'absolute',
background: 'This value needs to be filled dynamically',
borderRadius: '50%'
}
}
<div className = {classes.goodOne}>Hello world</div>
How can i do that?