File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 "html-webpack-plugin" : " ^3.2.0" ,
2727 "jest" : " ^23.6.0" ,
2828 "react" : " ^16.6.3" ,
29+ "react-axe" : " ^3.0.2" ,
2930 "react-dom" : " ^16.6.3" ,
3031 "style-loader" : " ^0.23.1" ,
3132 "webpack" : " ^4.25.1" ,
Original file line number Diff line number Diff line change @@ -2,4 +2,9 @@ import React from "react";
22import ReactDOM from "react-dom" ;
33import App from "./App" ;
44
5+ if ( process . env . NODE_ENV !== 'production' ) {
6+ var axe = require ( 'react-axe' ) ;
7+ axe ( React , ReactDOM , 1000 ) ;
8+ }
9+
510ReactDOM . render ( < App /> , document . getElementById ( "root" ) ) ;
Original file line number Diff line number Diff line change @@ -1240,6 +1240,11 @@ aws4@^1.8.0:
12401240 resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f"
12411241 integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==
12421242
1243+ axe-core@^3.0.0 :
1244+ version "3.1.2"
1245+ resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-3.1.2.tgz#ca0aff897ebefca7552f97859dc1217c06c4f9e6"
1246+ integrity sha512-e1WVs0SQu3tM29J9a/mISGvlo2kdCStE+yffIAJF6eb42FS+eUFEVz9j4rgDeV2TAfPJmuOZdRetWYycIbK7Vg==
1247+
12431248babel-code-frame@^6.26.0 :
12441249 version "6.26.0"
12451250 resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
@@ -6225,6 +6230,13 @@ rc@^1.2.7:
62256230 minimist "^1.2.0"
62266231 strip-json-comments "~2.0.1"
62276232
6233+ react-axe@^3.0.2 :
6234+ version "3.0.2"
6235+ resolved "https://registry.yarnpkg.com/react-axe/-/react-axe-3.0.2.tgz#91e4265b665dd1f45cf3d0254a90c72ff6fd88cb"
6236+ integrity sha512-cYuxIyOVhZ0kF54V4LMTE33B/ATTzcZtIlU7F7XhP7/gBDWvkxsfjq1oAMLolvI2OhNNivNFEIIJa/rhYj96Pw==
6237+ dependencies :
6238+ axe-core "^3.0.0"
6239+
62286240react-dom@^16.6.3 :
62296241 version "16.6.3"
62306242 resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.6.3.tgz#8fa7ba6883c85211b8da2d0efeffc9d3825cccc0"
You can’t perform that action at this time.
0 commit comments