@dxos/react-appkit
TypeScript icon, indicating that this package has built-in type declarations

0.3.10 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @dxos/react-appkit

Homepage

dxos.org

Weekly Downloads

1,255

Version

0.3.10

License

MIT

Unpacked Size

723 kB

Total Files

360

Last publish

Collaborators

  • zhenya-dxos
  • mykola-vrmchk
  • dxos-bot
  • richburdon
  • marik_d
  • wittjosiah