@dxos/react-appkit
DXOS opinions for building React applications
Installation
pnpm i @dxos/react-appkit
Usage
Sentry & Telemetry
Put the following in the entrypoint of an app:
import { initializeAppTelemetry } from "@dxos/react-appkit/telemetry";
initializeAppTelemetry(namespace, new Config(Defaults()));
Config is required to provide environment variables to the initialization.
It reads from the following variables:
- DX_SENTRY_DESTINATION
- DX_TELEMETRY_API_KEY
- DX_IPDATA_API_KEY
To hook up navigation and click telemetry events in an app, with the react-router context:
useTelemetry({ namespace });
DXOS Resources
Contributions
Your ideas, issues, and code are most welcome. Please take a look at our community code of conduct, the issue guide, and the PR contribution guide.
License: MIT Copyright 2022 © DXOS