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!
#Remix + styled-components. Yay or nay?
1 messages · Page 1 of 1 (latest)
What makes you want to use styled-components?
do SC work with streaming SSR now?
if they don't, then I would avoid them
if they do use what you like
@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.
You want tailwind. Even if you don’t know it yet
@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.
If you’re set on css-in-js style solutions, but flexible on the implementation I’d recommend checking out https://vanilla-extract.style/
I think it has a better performance story compared to styled-components and is developed by Mark Dangleish from the remix/react-router team.