Files
karma/ui/src/index.js
Łukasz Mierzwa 22a48301e8 feat(sentry): add ErrorBoundary to capture exceptions
* switch to new Sentry client lib
* Add ErrorBoundary as a wrapper around App to capture errors and display exception page with auto refresh
* rename all instances of Raven to Sentry
2018-09-19 21:08:22 +01:00

25 lines
739 B
JavaScript

import React from "react";
import ReactDOM from "react-dom";
import Moment from "react-moment";
import { SettingsElement, SetupSentry, ParseDefaultFilters } from "./AppBoot";
import { App } from "./App";
const settingsElement = SettingsElement();
SetupSentry(settingsElement);
// global timer for updating timestamps to human readable offsets
// this needs to be run before any <Moment/> instance
// https://www.npmjs.com/package/react-moment#pooled-timer
Moment.startPooledTimer();
const defaultFilters = ParseDefaultFilters(settingsElement);
// https://wetainment.com/testing-indexjs/
export default ReactDOM.render(
<App defaultFilters={defaultFilters} />,
document.getElementById("root") || document.createElement("div")
);