BEM — Block Element Modifier is a methodology that helps you to create reusable components and code sharing in front-end development
http://getbem.com/introduction/
Also read: Why BEM? (in a nutshell)
BEM — Block Element Modifier is a methodology that helps you to create reusable components and code sharing in front-end development
http://getbem.com/introduction/
Also read: Why BEM? (in a nutshell)
According to the repo, CSS modules are:
CSS files in which all class names and animation names are scoped locally by default.
So CSS Modules is not an official spec or an implementation in the browser but rather a process in a build step (with the help of Webpack or Browserify) that changes class names and selectors to be scoped (i.e. kinda like namespaced).