~/lightning

Lightning talk: Renderless React Components

Lightningat Nordic.js 2017 · 2017-09-07..09-08· [react, frontend-architecture]
slides:none on file

A small library of renderless React components captures client-only values like viewport width and saved scroll positions and writes them into the Redux store so pages avoid double renders and race conditions. The team replaces clumsy setTimeout hacks and per-page scale checks by initializing client data before the page render and running scroll fixes in componentDidUpdate, which preserves place on zoom and generalizes to other client-side adjustments with predictable mounting behavior.

AI-written summary · about

  1. 0:00Start
  2. 0:58First try - dispatching action in Page component export default class Page extends component
  3. 1:44Second try - dedicated component for getting client size export default class Init extends Component
  4. 2:33First try - saving and setting the scroll in the zoom button
~/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.