@talentdigital/react
v0.33.2
Published
React hooks and components for the talent::digital Software Development Kit
Keywords
Readme
@talentdigital/react
This package provides a react wrapper around @talentdigital/kit.
Usage
Install the package using your packaging tool.
npm install @talentdigital/reactor
pnpm add @talentdigital/reactor
yarn add @talentdigital/reactImport the useKit React Hook.
import { useKit } from "@talentdigital/react";Define the interface for the format configuration used. (optional)
export interface FormatConfiguration {
backgroundImage: string;
introText: string;
questions: any[];
}Create the kit using the useKit hook
const kit = useKit<FormatConfiguration>({
tenant: "your tenant id",
logRocketId: "your logrocket id", // optional
});