~/talk

React Anti Patterns In AI Generated Code - Kawtar Choubari

Talkat React Paris 2026 · 2026-03-26..03-27· [react, ai-assisted-development]
slides:none on file

AI-generated React code often creates three needless re-renders by turning derived values into state, repeatedly uses useEffect for simple calculations, and defaults to index keys causing UI reordering bugs. Data fetching omits cleanup, producing race conditions from untidy fetches and state updates after unmount. Accessibility is commonly ignored: divs masquerading as buttons, unlabeled inputs, modals without focus or ARIA. Recommended fixes: use derived values, stable IDs, cancel flags or TanStack Query, ESLint, TypeScript strict, and Cursor docs.

AI-written summary · about

  1. 0:00Introduction to React AI anti-patterns
  2. 1:08Why AI generates React anti-patterns
  3. 4:18Overuse of useEffect in calculations
  4. 5:40Using index as key in dynamic lists
  5. 7:03Data fetching without cleanup
  6. 8:51Zero as truthy value in React
  7. 9:34Accessibility anti-patterns in UI
  8. 11:42Best practices for AI-generated React code
  9. 13:28Planning and critiquing AI output
  10. 14:11Refactoring AI-generated React code
  11. 15:13Q&A and closing remarks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.