Install the React Spreadsheet component with the DHTMLX React Spreadsheet package, which is available as a public evaluation build or as a commercial release through the private DHTMLX registry. The package requires React 18 or higher and includes bundled TypeScript types.
The ReactSpreadsheet component uses a props-based API. In the basic example, the sheets prop defines the spreadsheet content, while styles and activeSheet configure its appearance and initial state.
You can keep spreadsheet data in a Redux Toolkit store and pass it to ReactSpreadsheet through useSelector. After user actions, the component state is serialized from the spreadsheet instance and dispatched back to the store with onAfterAction, which keeps the UI and Redux state in sync.
DHTMLX React Spreadsheet ships with bundled TypeScript type definitions. Full JSX and TSX support lets you work with React's syntax and TypeScript's type-checking to build and maintain spreadsheet interfaces confidently. The component also works in Next.js with the App Router. Since the spreadsheet is a client-side widget, wrap it in a client component using the "use client" directive and import it into your server page.