Requirements: 2.3.3 and up Overview: HD Online Player is the best multiplayer poker game with a great design. In this multi-player version of HD Online Player you compete with other players around the world and play poker .
Show more Related tags : governor of poker 2 free download mod apk, governor of poker 2 free download mod for android, governor of poker 2 free download for pc windows 7, governor of poker 2 free download for pc download, governor of poker 2 free download crack, governor of poker 2 free download hack, governor of poker 2 free download latest version, governor of poker 2 free download for pc, governor of poker 2 free download 1.2.1, governor of poker 2 free download mod 1.2.1, governor of poker 2 free download hack 1.2.1, governor of poker 2 free download 1.2.1 for android, governor of poker 2 free download 1.2.1 for pc, governor of poker 2 free download 1.2.1 for macQ:
Access parent container in styled component
I have a React component which extends from a class. It is styled using the styled-component and is rendered into a styled element.
I want to add a hover effect to the styled component to highlight it. The problem is that the original class can't access the parent element and therefore can't access the element itself.
How can I fix this?
This is the example code:
const IconClass = styled.i.className({
':hover': {
backgroundColor: 'green'
},
':active': {
backgroundColor: 'green'
}
});
A:
Here are a few options:
// ES7+ -- to a variable:
const IconClass = styled.i.className({
':hover': {
backgroundColor: 'green'
},
':active': {
backgroundColor: 'green'
}
});
// ES7+ -- to a let:
let IconClass = styled.i.className({
':hover': {
backgroundColor: 'green'
},
':active': {
backgroundColor: 'green'
}
});
// ES7+ -- to a className:
let Icon be359ba680
Related links:
Comments