The syntax was also awkward to me at first:
const StyledLink = styled(Link)`
color: palevioletred;
font-weight: bold;
`;
I thought in JS you couldn't invoke a function without the parenthesis, but apparently you can if you interpolate the string with backticks first? I've done a lot of JS development and I've never seen that before, so while it's nice that it's cleaner it just got in my way of understanding what's going on. I'd rather just do: const StyledLink = styled(Link)({
color: "palevioltred",
fontWeight: "bold"
})
It looks basically the same but is immediately intuitive and much more powerful since the styles are objects instead of a string.(Edited for some formatting)
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.