Hacker News new | past | comments | ask | show | jobs | submit login

Actually, inline styles are a fad now in React.[1] I've been trying them in my latest project, and am loving it; really solves some of my old pain points with CSS. Haven't been doing it long enough to figure out the new problems it causes, though.

Of course such a project won't work with most non-React web projects. Idiomatic React projects tend to have a large number of small components with extensive re-use. (~5 lines of HTML not counting closing tags per component is my metric)

1: http://projects.formidablelabs.com/radium/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: