Full answer
A review is a quality gate and a way to share knowledge. A good reviewer works through a short, repeatable list, and does not rely on style opinions that a formatter can settle.
- Purpose and scope. Does the change match the ticket? Is it small enough to review? Are unrelated edits mixed in?
- Behaviour in all states. Look for loading, empty, error and slow-network states. Check the first render and the update path, and what happens when the data is missing or very long.
- Accessibility. Can the feature be used by keyboard alone? Are controls native elements with names? Is focus managed in dialogs and route changes? Are colour and contrast sufficient? Are images given useful alt text?
- Performance. Does the change add large dependencies or a lot of JavaScript to a critical route? Are images sized, with dimensions? Do new effects or listeners clean up after themselves? Any work in render that should be memoised, or a list that should be virtualised?
- Security. Is any user data written into the DOM as HTML? Are URLs and redirects validated? Is anything sensitive stored in
localStorageor logged? Are new third-party scripts needed and pinned? - Data and API use. Are errors handled, requests cancelled when the view changes, and race conditions considered? Is there duplicated state?
- Tests. Do the tests cover the new behaviour, in a way a user would see, and do they fail for the right reason? Is any flaky pattern (a fixed sleep) added?
- Maintainability. Clear names, small functions, no dead code, types that say what they mean, and consistent patterns with the rest of the code base. Does the design make the next change easier or harder?
- Cross-browser and responsive behaviour. Does it work at small widths and with zoom? Are newer CSS or JavaScript features used without a fallback or a support check?
- Release and rollback. Is a feature flag needed? Are migrations or cache effects considered?
How to give feedback: be specific, explain why, and offer a direction. Mark comments as blocking, suggestion or question. Praise good work. Run the branch when the change is user-facing instead of reading only the diff, and let automated checks handle formatting and lint.
Key points
- Start with scope and purpose, then check behaviour in all states.
- Review accessibility, performance and security explicitly.
- Look at tests, maintainability and rollback.
- Run user-facing changes, not only the diff.
- Feedback should be specific, reasoned and marked as blocking or optional.
Common mistakes
- Arguing about formatting that a tool could enforce.
- Reviewing only the happy path.
- Approving large pull requests without asking for a split.
- Writing vague comments such as 'this is bad' without a reason.
Follow-ups
- How do you review a pull request that is too large?
- Which comments would you mark as blocking?
- How would you check accessibility in a review?
Tips
- Give a short ordered list, then say what you would automate.
- Mention how you word feedback, since reviews are also about people.