Skip to content

Instantly share code, notes, and snippets.

@indreklasn
Created October 21, 2019 09:24
Show Gist options
  • Save indreklasn/c49336e11dd2789deb06d99f02836c89 to your computer and use it in GitHub Desktop.
Save indreklasn/c49336e11dd2789deb06d99f02836c89 to your computer and use it in GitHub Desktop.
const React = require('react');
const ReactDOM = require('react-dom');
if (process.env.NODE_ENV !== 'production') {
const axe = require('react-axe');
axe(React, ReactDOM, 1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment