This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
class Filho extends Component { | |
render() { | |
const onClick = this.props.onClick | |
return ( | |
<div> | |
<button onClick={() => onClick()}> | |
Click me! | |
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Sentry.js Config --> | |
<script src="https://js.sentry-cdn.com/{{ENV['SENTRY_PUBLIC_DSN']}}.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// custom functions to handle errors in JS. | |
function handleRouteError(err) { | |
Sentry.captureException(err); | |
} | |
function errorHandler(error, data, level) { | |
level = level || 'info'; |