Better HN
topnewbestaskshowjobs
Log inSign up

cmbsw

3 karma · joined Sep 11, 2017 (9y ago) · 2 submissions

Submissions

comment 9y ago · link · parent

Styled components uses tagged template literals so they aren't just strings and are very flexible. This blog post is a great explanation http://mxstbr.blog/2016/11/styled-components-magic-explained.... For example

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.

comment 9y ago · link · parent

What do you hate about styled-components?