~/talk

How to style in React and not lose friends

Talkat JSConf Iceland 2018 · on Friday, 2018-03-02· [react, css]
slides:none on file

A war story about a team that fractures over styling leads into concrete comparisons: BEM and naming-based CSS, Sass preprocessing, raw inline styles (React style objects), and styled-components/CSS-in-JS. Each method gets code examples, folder structure samples, pros and cons (render cost, specificity, nesting pitfalls, loss of Cascade), and a note that styled-components emits real CSS and supports React Native. The checklist for choosing includes team mental models, need for theming, build complexity, and evidence that many options work if the team agrees.

AI-written summary · about

  1. 0:00Start
  2. 1:09Styling and React
  3. 3:31Gripes against Css
  4. 5:17Standardization Methods
  5. 5:47Block Element Modifier Rules
  6. 6:46Component Structure
  7. 10:35Preprocessors
  8. 12:23Pros
  9. 13:14Cons
  10. 14:24Inline Styles
  11. 18:47Debug in the Dom
  12. 19:28Performance
  13. 25:09The Mental Models
  14. 26:12What Do You Need To Build
  15. 26:43Structuring Your Project
  16. 27:17Create the Right Environment
  17. 27:42Build Trust
  18. 28:07Be Vulnerable
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.