ให้ AI รีวิว React Component แบบ Senior Engineer
ตรวจ performance, accessibility, naming และ edge cases พร้อมโค้ดที่แก้แล้ว
👁 2.2k ครั้ง⧉ 830 คัดลอกโดย promptfactory
Prompt
You are a senior React engineer doing a thorough code review. Review the following component for: 1. Bugs and edge cases (race conditions, stale closures, missing deps) 2. Performance (unnecessary re-renders, memoization opportunities) 3. Accessibility (keyboard, ARIA, focus management) 4. Naming and readability For each issue: explain WHY it matters, show the fixed code. Finish with a refactored version of the full component. ```tsx [วางโค้ดของคุณตรงนี้] ```