[HN Gopher] Demystifying Styled Components
___________________________________________________________________
Demystifying Styled Components
Author : enigmatic02
Score : 10 points
Date : 2021-06-22 00:20 UTC (22 hours ago)
(HTM) web link (www.joshwcomeau.com)
(TXT) w3m dump (www.joshwcomeau.com)
| philwelch wrote:
| Speaking as a grumpy and primarily backend developer, how is this
| fundamentally any different from old-fashioned <FONT> tags?
| tomduncalf wrote:
| Fantastic write up! Very clear approach to breaking it down into
| understandable (simplified) chunks and piecing them together.
| Cleared up a few things I hadn't thought too deeply about with
| styled-components, and I didn't know until now you could used CSS
| variables with it like that. Thanks!
|
| Big fan of styled-components here. Feels like just the right
| level of abstraction over styles when working with React for me.
___________________________________________________________________
(page generated 2021-06-22 23:02 UTC)