0
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>
)
}

} 

How can use o attribute hover in this case? My exemple doesn't work.. what i have to do?

1 Answers1

1

You need the Radium library

import Radium from 'radium';
 some = Radium(some);
    const customPanelStyle = {
       'background-color': 'red', 
       'border': '1px solid green',
        ':hover':{
            'background': 'blue'    
        }
    }

more info about radium

madalinivascu
  • 32,064
  • 4
  • 39
  • 55