Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
if (this.state.error) {
/* render fallback UI */
return (
<div> Raven.lastEventId() && Raven.showReportDialog()}>
<p>We're sorry — something's gone wrong.</p>
<p>Our team has been notified, but click here fill out a report.</p>
</div>
{Toast.push('Произошла ошибка. Попробуйте перезагрузить страницу.')}
);
}
/* when there's not an error, render children untouched */
return this.props.children;
}
}
<button>} onClick={() => Toast.push('Ссылка скопирована')}>
Скопировать ссылку</button>