~/lightning

Context in React

Lightningat React Conf 2018 · on Friday, 2018-10-26· [react, developer-experience]
slides:none on file

Claims that Context is for sharing state only inside a component tree not as global app state and that it removes prop drilling. Uses React createContext/Provider, class property contextType (React 16.6) and the new useContext hook, and cites 16.3/16.6/hook timing. Demonstrates a fleet dashboard multi-step form sharing parent state and two updater functions, notes a rerender gotcha when passing fresh objects and fixes it by storing methods on the top-level state, and the refactor is described as working.

AI-written summary · about

  1. 0:00Intro
  2. 1:44Using Context
  3. 3:30New Context Inversion
~/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.