MDK Logo

Get started with React

Choose a path to set up the MDK React UI Kit

TL;DR

  • One provider, zero Redux: install and wrap your app in <MdkProvider> so connected foundation components and adapter hooks share the same stores and API client
  • Presentational /core and /foundation imports can work without the provider
  • Anything that reads app state needs the provider

Choose your path

Prerequisites

  • Node.js 20+
  • npm 11+ (upgrade npm if npm -v shows 10.x on Node 22)
  • React 19+ and react-dom 19+

About the React stack

The React UI Kit is published as three workspace packages in the MDK monorepo:

  • @tetherto/mdk-ui-core — headless state (Zustand vanilla stores), a TanStack QueryClient factory, telemetry primitives, and the command state machine. No React.
  • @tetherto/mdk-react-adapter — React bindings: <MdkProvider>, store hooks (useAuth, useDevices, useNotifications, useTimezone, useActions) and re-exports of useQuery / useMutation.
  • @tetherto/mdk-react-devkit — the React UI library: ./core primitives and ./foundation mining-domain components, hooks, and styles.

@tetherto/mdk-ui-core is framework-agnostic; the adapter and devkit are React-specific. Add all three to your app’s package.json, then wrap the tree once in <MdkProvider> from @tetherto/mdk-react-adapter.

Next steps

On this page