#Remix + styled-components. Yay or nay?

1 messages · Page 1 of 1 (latest)

woven lantern
#

Hi all, sort-of new Remix dev here. I've done a bit of reading about Remix, and I really dig the concept, but I'm still figuring out if styled-components are a thing I should avoid. The documentation says to avoid, but there's a styled-components example in the "official" examples, and there's quite a bit of talk around styled-components and Remix in general, despite the fact it's not advised to use the two together. So, please, set me straight. Should I avoid styled-components in my Remix app? If I do use styled-components, should I expect pain and suffering? Any advice is welcome and appreciated!

nocturne burrow
#

What makes you want to use styled-components?

onyx totem
#

do SC work with streaming SSR now?

#

if they don't, then I would avoid them

#

if they do use what you like

woven lantern
#

@nocturne burrow I like keeping styling and logic together in the same component. Also I used SC quite a bit in a past role and they're mostly what I know.

ashen willow
#

You want tailwind. Even if you don’t know it yet

woven lantern
#

@ashen willow I've used it and I dig it. I'm thinking more along the lines of cases where I have to implement something very customized for which Tailwind may not be suitable. For example, highly customized components, that sort of thing.

fresh arrow
fleet crown
#

I'm doing it now, it feels like a pain in the ass tbh but it works really well for my use case

#

and I managed to sort of get it working