🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@dxos/react-appkit

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/react-appkit

DXOS opinions for building React applications

0.3.10
latest
Version published
Weekly downloads
2
-75%
Maintainers
6
Weekly downloads
 
Created

@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

FAQs

Package last updated on 05 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts