shud.in/thoughts/bui...
#react
You can learn more about using styled-components with RSC here: styled-components.com/docs/advance...
😮 Woah! I somehow missed the news that styled-components now supports React Server Components!
Last I heard, styled-components was entering “maintenance mode” with a skeleton crew, so I really wasn’t expecting this. Fantastic news! styled-components remains the best styling solution for React, IMO.
Masonry Layout is Now `grid-lanes` by @sunkanmifafowora.bsky.social
css-tricks.com/masonry-layo...
Fit width text in 1 line of CSS
`text-grow: per-line scale;`
nerdy.dev/css-text-grow
(prototype in Canary 165+)
📌
Screenshot of code showing a "@ts-expect-error" comment with a red underline. A label reads "I fixed the issue, and now the TS compiler will let me know to remove this flag"
Lil’ TypeScript tip: Instead of using `@ts-ignore` for stuff you don’t feel like fixing rn, use `@ts-expect-error`.
When you do fix the issue, `@ts-expect-error` will *itself* become an error (which you can fix by deleting the comment).
That way, you avoid stale ignores that aren’t needed anymore.
Check it out - RSC in React Router!
Been working on this with @ebey.bsky.social and @markdalgleish.com for a little bit - pumped for folks to start playing with it!
remix.run/blog/rsc-pre...