Created ErrorHandler test

This commit is contained in:
Alejandro Celaya
2019-03-04 20:49:18 +01:00
parent cd908fa358
commit ad9f0c00d0
2 changed files with 36 additions and 1 deletions

View File

@@ -14,7 +14,6 @@ const ErrorHandler = ({ location }) => class ErrorHandler extends React.Componen
}
static getDerivedStateFromError() {
// Update state so the next render will show the fallback UI.
return { hasError: true };
}