Y
Hacker News
new
|
ask
|
show
|
jobs
by
spankalee
2267 days ago
That's not stylable from CSS though, so you have to pass JS props and can't use selectors. It also duplicates styling strings across all similar style attributes which is not good for memory or perf.
1 comments
TomMarius
2266 days ago
Noone using React cares about styling from CSS though. It doesn't have to duplicate much, you can use e.g. typestyle or React Native's Stylesheet
link