Live data from Hacker News

How to style React applications while the world burns around us (2020)

herbcaudill.com

1–10 of 17 posts

Re: How to style React applications while the world burns around us (2020)

#5
Maybe I'm the minority here, but with something like Vite I can import a css file directly into a given component's file and call it a day. Haven't worried about scoping in forever, and only need to manage a number of distinct, small, and comprehensible css files.

Re: How to style React applications while the world burns around us (2020)

#6

Maybe I'm the minority here, but with something like Vite I can import a css file directly into a given component's file and call it a day. Haven't worried about scoping in forever, and only need to manage a number of distinct, small, and comprehensible css files.

Tailwind kills the scoping problem too

I went through a very similar story to the author and ended up with the same conclusion. Once I tried it, everything else felt terrible

Re: How to style React applications while the world burns around us (2020)

#9
When talking about CSS-in-JS I am reminded of the short lived escapade at Netscape around 1997/1998 when they launched JSSS, only be be shut out by Microsoft ignoring support for it in the increasingly dominant Internet Explorer as they favored CSS. As a result it died and disappeared.

http://sunsite.uakom.sk/sunworldonline/swol-04-1997/swol-04-...

Re: How to style React applications while the world burns around us (2020)

#10
This article is an excellent summary of recent trends and philosophies of CSS. The only new, noteworthy styling solution missed (from what I can tell) is StyleX from Meta.

As someone working in this space, it's a huge relief to move away from piles of CSS/SCSS files towards colocating styles with markup.

Post reply on HN