33 ms·
Ton of discussion/debate on this topic and there are clear benefits to an inline style approach, but so far nothing (that I'm aware of) has proven to be scalabl
by dwg 9y ago
Ton of discussion/debate on this topic and there are clear benefits to an inline style approach, but so far nothing (that I'm aware of) has proven to be scalable enough to completely take over (yet).
For me a combination of approaches makes the best sense at present. I think of Bootstrap (or Bulma, etc.) as an advanced "reset/normalize", with the addition of some useful global variables. A better starting place, if you will. From there I use the provided class names where it makes sense, and inline styles for everything else.
For inline styles I often use either styled components or glamorous. However my experience has been mixed as I also make heavy use of recompose and often don't have a clear idea which one I want to use to handle dynamic styles. I haven't done so yet but am interested to try Fela.