Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
renderError = () => {
const { error, renderError } = this.props;
const { isLoading } = this.props;
if (renderError && error && !isLoading) {
return isFunction(renderError) ? renderError(error) : renderError;
}
return null;
};