Skip to content

Installation

  1. Terminal window
    npm install @dxdns-kit/core @dxdns-kit/react
  2. Wrap your application with the Provider to enable all dxdns-kit components. This should be done at the layout level to ensure global access.

    Recommended: Place this in src/main.tsx (React root element)

    • Directorysrc
      • main.tsx
    import { StrictMode } from "react"
    import { createRoot } from "react-dom/client"
    import App from "./App"
    import { Provider } from "@dxdns-kit/react"
    createRoot(document.getElementById("root")!).render(
    <StrictMode>
    <Provider>
    <App />
    </Provider>
    </StrictMode>
    )
  3. import { Button } from "@dxdns-kit/react"
    function App() {
    return (
    <>
    <Button>
    Click me
    </Button>
    </>
    )
    }
    export default App