multiple condition in style react code example
Example: react multiple if statement in style
<button style={{
...(hasFocus && {
outline: '1px solid #13b3a4',
backgroundColor: '#e7fefc',
}),
...(isHovered && {
borderColor: brColour,
backgroundColor: bgColour,
outline: 'none',
}),
}}
>
add
</button>