const customPanelStyle = {
'background-color': 'red',
'border': '1px solid green',
':hover'{
'background': 'blue'
}
}
class some extends React.Component{
render(){
return(
<Panel header={value} key="1" style={customPanelStyle} >
<p>{this.state.content[key]}</p>
</Panel>
)
}
}
I'm having trouble implementing the hover
attribute in this case. The example I tried doesn't work. Any suggestions on how to make it function properly?