I'm probably going to catch heat for this, because people (I did too, I won't lie) have a visceral reaction to the Javascript for styling, but... StyleX.
It came on my radar a few months ago when I first started noticing this rot problem. Then recently I saw that it was getting quite hyped and people have been singing its praise for solving this exact problem. So I'm giving it a shot.
Can't say for certain whether it will work out well or not yet, but based on the feedback I've been seeing from others, I'm hopeful.
I'm probably going to catch heat for this, because people (I did too, I won't lie) have a visceral reaction to the Javascript for styling, but... StyleX.
It came on my radar a few months ago when I first started noticing this rot problem. Then recently I saw that it was getting quite hyped and people have been singing its praise for solving this exact problem. So I'm giving it a shot.
Can't say for certain whether it will work out well or not yet, but based on the feedback I've been seeing from others, I'm hopeful.
i.e. https://dev.to/adioof/stylex-won-css-in-js-because-ai-agents... (not my blog).