~/lightning

Reducing Redux Boilerplate

Lightningat ReactiveConf 2016 · on Thursday, 2016-10-27· [react, frontend-architecture]
links:none on file
slides:none on file

Argues that Redux boilerplate falls by collocating behavior: actions carry the reducer function and an optional path so updates run deep in state, letting constants disappear and middleware still see a type. Shows an action factory that produces path-bound actions for many counters and demonstrates it on a simple counter example. Claims this reduces files and indirection, preserves Redux middleware compatibility, and sacrifices strict action serializability while working in practice.

AI-written summary · about

  1. 0:00Start
  2. 0:22Redux Example
  3. 0:42So what's wrong with that?
  4. 0:52Code spread across directories
  5. 1:08Reducers are not declarative
  6. 1:27Collocating action + its reducer
  7. 1:51Removing constants
  8. 2:28Adding Path
  9. 2:54More counters? No problem!
  10. 3:41What did we gain?
  11. 4:03What did we lose?
  12. 4:28Summary
~/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.