We’ve moved away from building a site page by page. Now, teams are moving to component-based designs. In this talk, we’ll take a look at the evolution of front-end processes from design through to implementation. We’ll see how CSS concepts like BEM and SMACSS apply in a world of React, CSS Modules, and Web Components. Lastly, we’ll take a gander at what possibilities still lie ahead.
59. • Need to know rendered HTML to know what CSS
will be applied
• Need to be able to know how HTML will change via
JavaScript
• Need to be able to understand cascade
65. • Tooling avoids namespacing and cascade issues
• CSS embedded with JS allows easier visualization/
understanding of how the component and the styles for
the component are linked
• Bundling CSS and HTML with JS has potential for
cohesive understanding and enable optimization
• Automate what SMACSS/BEM does through convention
Pros
66. • Handling CSS’s state management at the JS level
can cause performance issues or require
workarounds
• Like everything else, the solutions don’t understand
the HTML and have no way to optimize
• Side effects when working outside of tooling
ecosystem
Cons