Jss: [Question] Advantage over One Class One Property

Created on 9 Jul 2017  路  1Comment  路  Source: cssinjs/jss

Whats the profit of this method compared to used in Fela and Styleron (single class per property.)?

question

Most helpful comment

I guess you are talking about atomic rendering, where every css rule contains only one property, right?

The biggest problem with this approach is convenience. If you tried styletron, you will see that if you change in dev tools one value, it will break everything on that page. Also this is a good list http://fela.js.org/docs/introduction/Drawbacks.html

I was thinking to add atomic rendering as a plugin or evtl as a renderer. I didn't see enough benefit though so far to do this myself. You are free to try though.

>All comments

I guess you are talking about atomic rendering, where every css rule contains only one property, right?

The biggest problem with this approach is convenience. If you tried styletron, you will see that if you change in dev tools one value, it will break everything on that page. Also this is a good list http://fela.js.org/docs/introduction/Drawbacks.html

I was thinking to add atomic rendering as a plugin or evtl as a renderer. I didn't see enough benefit though so far to do this myself. You are free to try though.

Was this page helpful?
0 / 5 - 0 ratings