123456 |
- {
- "html": "<div class=\"section\" id=\"installation\">\n<h2>Installation</h2>\n<p>Start by adding the <code class=\"docutils literal\"><span class=\"pre\">raven.js</span></code> script tag to your page. It should be loaded as early as possible, before your main javascript bundle.</p>\n<div class=\"highlight-html\"><div class=\"highlight\" style=\"background: #ffffff\"><pre style=\"line-height: 125%\"><span></span><span style=\"color: #111111\"><</span><span style=\"color: #2eb0f7\">script</span> <span style=\"color: #a47ac6\">src</span><span style=\"color: #4b4f5c\">=</span><span style=\"color: #e8535a\">"https://cdn.ravenjs.com/3.20.1/raven.min.js"</span>\n <span style=\"color: #a47ac6\">crossorigin</span><span style=\"color: #4b4f5c\">=</span><span style=\"color: #e8535a\">"anonymous"</span><span style=\"color: #111111\">></</span><span style=\"color: #2eb0f7\">script</span><span style=\"color: #111111\">></span>\n</pre></div>\n</div>\n</div>\n\n\n<div class=\"section\" id=\"configuring-the-client\">\n<h2>Configuring the Client</h2>\n<p>Next configure Raven.js to use your Sentry DSN:</p>\n<div class=\"highlight-javascript\"><div class=\"highlight\" style=\"background: #ffffff\"><pre style=\"line-height: 125%\"><span></span><span style=\"color: #111111\">Raven.config(</span><span style=\"color: #e8535a\">'___PUBLIC_DSN___'</span><span style=\"color: #111111\">).install()</span>\n</pre></div>\n</div>\n<p>At this point, Raven is ready to capture any uncaught exception.</p>\n</div>\n",
- "link": "https://docs.getsentry.com/clients/javascript/integrations/react/",
- "id": "javascript-react",
- "name": "React"
- }
|