~/talk

Managing Reusable Logic in React

Talkat NationJS React 2018 · on Friday, 2018-01-05· [react, component-design]
links:none on file
slides:none on file

Compares three concrete reusable-logic implementations by showing the same search feature as a mixin that mutates class state, a higher-order component that injects props and manages fetches, and a render-prop that passes state and handlers into render callbacks; warns mixins break with ES6 and cause naming clashes, HOCs compose at compile time and can collide on prop names, render-props simplify UI coupling but can cause inline render performance issues, and notes experimental custom hooks as a practical alternative.

AI-written summary · about

  1. 0:00Start
  2. 0:56Acknowledgement of Country
  3. 9:02Example Code
  4. 10:13Downfalls
  5. 11:03Render Prompts
  6. 14:23When Not To Use Render Props
  7. 15:00What Have We Learned
  8. 15:26Decorators and Container Components
  9. 16:13Abstract State Management
  10. 16:53Hooks
  11. 19:21Resources
~/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.