Skip to content

marcysutton/react-axe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Install the module from NPM or elsewhere

npm install --save-dev react-axe

Initialize the module

Call the exported function passing in the React and ReactDOM objects as well as a timing delay in milliseconds that will be observed between each component change and the time the analysis starts.

var React = require('react');
var ReactDOM = require('react-dom');
var axe = require('react-axe');

axe(React, ReactDOM, 1000);

Once initialized like this, the module will output accessibility defect information to the Chrome Devtools console every time a component updates.

Run the example

Run a build in the example directory and start a server to see React-aXe in action in the Chrome Devtools console (opens on localhost:8888):

cd example
npm install
npm start

Compatibility

react-axe uses advanced console logging features and only works in the Chrome browser

About

Accessibility auditing for React.js applications

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 83.3%
  • HTML 16.7%