~/talk

A Closer Look at React CSS

Talkat UtahJS Conf 2018 · on Friday, 2018-09-14· [react, css]
slides:none on file

Six precise gotchas about React CSS drive the talk: React uses the DOM className and JS-style style props (hence camelCase like marginTop), inline styles cannot do :hover or complex selectors, template literals can inject "false" classes, creating styled-components inside render forces repeated unmount/remounts, and CSS modules can precreate hundreds of persistent <style> tags. The author built Kremling, which scopes classes and unmounts unused style tags to reduce DOM bloat and avoid the false-class bug.

AI-written summary · about

  1. 0:00Introduction and quiz setup
  2. 1:49Why React CSS is controversial
  3. 3:15React CSS fundamentals
  4. 5:20Class name vs class in React
  5. 11:03Style prop and camelCase
  6. 14:41Class name vs style trade-offs
  7. 16:16Conditional class name gotcha
  8. 21:46Styled components pitfall
  9. 25:36CSS modules performance issue
  10. 29:11Summary and Kremmling framework
~/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.