$chiubaca / notes / fleeting / 2021-05-24
  • Refactored a bunch of m4m code to use styled components. I still have mixed feelings arouns css-in-js
    • conditional logic inside styled components feels overly complex
    • I dont like this syntax ${props => { props.thing // do stuff with props.thing }}
    • moving styled components out of the same .tsx files helps cleanup big files but feels like it removes the benefit of single file .tsx files.
Edit on GitHub ✏️

Hey I'm Alex Chiu 👋. These are my notes for literally anything.

I'm using the Zettelkasten method to organise my thoughts here.

My more polished writings are published to my main blog at chiubaca.com

Follow me on: Github / X (Twitter) / Mastodon / LinkedIn