JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://cdn.ravenjs.com/1.1.16/raven.min.js"></script>
<a href="#" id="undef">Undefined Function</a> <br />
<a href="#" id="undef2">Undefined Function w/ CaptureException</a>  <br />
<a href="#" id="ajax">Ajax 404</a>

JavaScript

Raven.config('http://[email protected]/sentry/3', {}).install();

$('#undef').click(function(e) {
    doesNotExist();
});

$('#undef2').click(function(e) {
    try {
        doesNotExist();
    } catch(error) {
        Raven.captureException(error);  
    }
});

$('#ajax').click(function(e) {
    $.ajax({
        url: '/doesntExist123',
        error: function(xhr,settings,error) {
            Raven.captureException(new Error(error));  
        }
    });
});