~/talk

React Refactoring Patterns

Talkat OdessaJS 2018 · on Sunday, 2018-07-08· [react, graphql]
slides:none on file

Shows concrete refactors used to turn a 2014 jQuery mess into a React/Redux single‑page app, with component-as-folder structure, Flow types for build‑time safety and GraphQL fragments & mutations to colocate data and actions. Demonstrates reusable patterns (generic/utility/domain components), a loading button that disables until a returned promise resolves, classnames + CSS modules for scoped styles, data-test attributes for Selenium, and topic‑follow mutation wiring that actually updates UI.

AI-written summary · about

  1. 0:00Start
  2. 4:46Three Types of Components
  3. 6:36Component as Folder
  4. 7:46Font Component
  5. 10:16Component as Props
  6. 16:50Type Safety
  7. 17:58Precomputed Sets
  8. 21:16Functions as Probes
  9. 22:57Domain Component
  10. 25:59The Topic Follow Button
  11. 26:27Topic Followed Toggle
  12. 26:52Action Button
  13. 27:23Loading Button
  14. 29:28Infinite Scrolling
~/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.