3 ms·
Though the styling of the website looks similar, this is not a facebook project. I think the main reasons to want a component to do some styling are: - so the
by grandalf 11y ago
Though the styling of the website looks similar, this is not a facebook project.
I think the main reasons to want a component to do some styling are:
- so the consumer doesn't have to include separate CSS elsewhere to get default appearance
- and so that stuff that is an implementation detail can be relatively hidden (as with the shadow dom) and can expose what it makes sense to expose.
So the ideal styling approach lets a component properly render itself, yet also lets it be customizable with regular CSS.