@asaayers/react-a11y

0.1.0 • Public • Published

React A11y

Warns about potential accessibility issues with your React elements.

screenshot

WIP

This is a WIP, feel free to explore, open issues, and suggest assertions :)

Installation

npm install react-a11y

Usage

In your main application file, require and call the module, you'll start getting warnings in the console as your app renders.

var a11y = require('react-a11y');
if (ENV === 'development') a11y(React);

You probably don't want to call it if you're in production, and better yet, alias the module to nothing with webpack in production.

If you want it to throw errors instead of just warnings:

a11y(React, {throw: true});

Package Sidebar

Install

npm i @asaayers/react-a11y

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • asaayers