React › Accessibility (a11y) in React
What tools can you use to check accessibility issues in a React app?
BeginnerAnswer
The eslint plugin jsx a11y catches common accessibility mistakes right inside your code editor while you type. The axe DevTools browser extension and Lighthouse in Chrome scan a running page and list real accessibility problems along with clear suggestions on how to fix each one.
// .eslintrc.js
module.exports = {
extends: ['plugin:jsx-a11y/recommended'],
};
// This will now show a warning during development:
// <img src="logo.png" /> // missing alt textReal-world example A team adds the jsx a11y eslint plugin to their project so that any pull request adding an image without alt text fails automatically before it ever reaches production.