~/talk

Hooks are a great abstraction model

Talkat React Finland 2021 · 2021-08-30..09-03· [react, frontend-architecture]
slides:none on file

Claims that hooks make a clean model/view split and then shows it: a reusable useToggler hook implements the model API (data, initialIndex, onValueChange) and returns currentValue, next/previous functions and isLowerBound/isUpperBound booleans; a separate Toggler UI consumes those props. Implementation lives in a Create React App with react‑native‑web, tests use react hooks testing library and react testing library to assert navigation, bounds and onValueChange calls; code is on GitHub.

AI-written summary · about

  1. 0:00Start
  2. 0:56Toggler Component
  3. 7:12React Hooks Testing Library
  4. 12:24Is It Possible To Implement Hooke's Interface without Direct Uh Library Dependencies
~/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.