~/talk

React - Rethinking Best Practices (updated)

Talkat JSConf.Asia 2013 · 2013-11-28..11-29· [react, javascript]
name:Pete Hunt
github:petehunt
slides:none on file

Announces the React Chrome Developer Tools and claims React replaces templates with components, re-renders the entire UI on every data change and uses a virtual DOM diff to compute minimal DOM operations and batch updates. Demonstrates event delegation, optional JSX, server‑side rendering for fast first paint, hooks for custom updates, and an experimental web‑worker bridge. Reports working at scale on Facebook and Instagram and achieving smooth 60fps mobile interactions.

AI-written summary · about

  1. 0:00Intro
  2. 0:47Give it five minutes.
  3. 3:05We all like separation of concerns, right?
  4. 3:44Coupling is
  5. 4:43Cohesion is
  6. 6:48inevitably tightly coupled.
  7. 7:02highly cohesive.
  8. 7:26Templates separate technologies, not concerns.
  9. 7:41Symptoms that your front-end technology is underpowered
  10. 10:34The framework cannot know how to separate your concerns for you.
  11. 11:16This tool is a React component.
  12. 11:27Use components to separate your concerns.
  13. 12:58Components are reusable.
  14. 13:10What about spaghetti code?
  15. 13:40Just don't write spaghetti code.
  16. 15:29What about working with designers?
  17. 15:54JSX is an optional preprocessor to let you use HTML-like syntax.
  18. 16:24With JSX, it's easy for designers to contribute code.
  19. 16:49Re-render the whole app on every update
  20. 17:55Data changing over time is the root of all evil.
  21. 19:46When the data changes, React re- renders the entire component.
  22. 20:00That is, React components are basically just idempotent functions.
  23. 21:46Re-rendering on every change makes things simple.
  24. 23:54React's architecture looks a lot like the Doom 3 engine
  25. 31:10The virtual DOM lets us do fun things.
  26. 35:32Virtual DOM is simple and fast
  27. 35:52Announcing React devtools
~/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.