Skip to content

Instantly share code, notes, and snippets.

@nsantos16
Created July 24, 2020 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nsantos16/ff2d9eb40be4541ba9af577c0dd70e6f to your computer and use it in GitHub Desktop.
Save nsantos16/ff2d9eb40be4541ba9af577c0dd70e6f to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
// Disable in production
if (process.env.NODE_ENV !== 'production') {
var axe = require('react-axe');
axe(React, ReactDOM, 1000);
}
// ...
ReactDOM.render(App, document.getElementById('root'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment