~/talk

Unlocking the structure of your React applications with the AST

Talkat React.js Conf 2015 · on Wednesday, 2015-01-28· [react, developer-experience]
slides:none on file

Claim: React components are effectively pure functions of props and state so build‑time AST transforms can add real tooling. Implementation uses Esprima to parse and escodegen/estraverse/esquery to rewrite code, producing a webpack loader that wraps React.createElement calls. Demo runs on TodoMVC demo and shows a live prop‑diff panel and 3D component view. Props are cloned with JSON stringify/parse and published to an event emitter for visualization; the transform is for development use because of serialization and performance costs.

AI-written summary · about

  1. 0:00Introduction
  2. 2:03Static analysis
  3. 2:43Why static analysis is difficult
  4. 4:20Why static analysis is easier
  5. 4:46Lowlevel transformations of code
  6. 5:31Highlevel transformations of code
  7. 6:33Instrumentation
  8. 7:43MVC
  9. 9:42Component wrappers
  10. 10:29Component wrapper implementation
  11. 11:15Generalizing the transform
  12. 12:05What is a compiler
  13. 12:52What is an AST
  14. 13:37Parse
  15. 14:00Terminal Step
  16. 14:24Using the AST
  17. 14:52Traversal and Query
  18. 15:35FragmentParse
  19. 16:02Templates
  20. 16:38Object literals
  21. 16:52Transformation
  22. 18:37Return component name
  23. 21:37Conclusions
~/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.