Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on CSS in JavaScript is like replacing a broken screwdriver with your favorite hammer. Parent comment
const Button = styled.button` font-weight: {props => props.active ? 'bold' : 'none'} `; <Button active > This will be bold </Button>
I've found it to be very handy.
const Button = styled.button` font-weight: {props => props.active ? 'bold' : 'none'} `; <Button active > This will be bold </Button>
I've found it to be very handy.