The letter S in a light blue, stylized speech bubble followed by SpeakBits
SpeakBitsThe letter S in a light blue, stylized speech bubble followed by SpeakBits
Trending
Top
New
Controversial
Search
Groups

Enjoying SpeakBits?

Support the development of it by donating to Patreon or Ko-Fi.
About
Rules
Terms
Privacy
EULA
Cookies
Blog
Have feedback? We'd love to hear it!

BEM: The Best Way To Write CSS

sotergreco.com
submitted
a year ago
bykaiserseahorsetoprogramming

Summary

In this example, the header is the other block and the title is the title of the page. The title of this article is the header and title of a page. This article is intended to be a guide to the best way to use the header. Use this guide to help you understand how to use your header.

You can also keep up with my latest updates by checking out my X here: x.com/sotergreco. If you have any questions, feel free to email me at kourouklis@pm.me, and I will respond.

 jersey T-shirt tee shirt web site website internet site site digital clock pick plectrum plectron-0
11

2 Comments

1
justadev
a year ago*
Throughout all these years, I've stuck by BEM since I first learned about it. It just makes SENSE from an encapsulation perspective and it's naturally semantic. All these other methods, even CSS-in-JS, are just recreating what is already there with BEM.
1
kaiserseahorseOP
a year ago
I have always hated CSS-in-JS and have fought back this entire time time continue with strategies like BEM. There is no reason to bind the JS and CSS together when all you get is a performance hit.