Documentation Index
Fetch the complete documentation index at: https://superdoc-nick-sd-2070-add-content-controls-namespace-to-doc.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
@superdoc-dev/react is a first-party React wrapper for SuperDoc. It handles lifecycle management, SSR safety, and React Strict Mode compatibility so you can drop a DOCX editor into any React app.
Installation
superdoc is included as a dependency ā no need to install it separately.Quick start
What the component handles
- Mounting ā Creates a SuperDoc instance when the component mounts
- Updates ā Rebuilds automatically when the
documentprop changes - Cleanup ā Destroys the instance on unmount
- SSR ā Renders container structure on server, initializes SuperDoc after hydration
- Strict Mode ā Internal cleanup flag prevents issues from React 18 double-invocation
Requirements
| Requirement | Version |
|---|---|
| React | 16.8.0+ |
| Node.js | 16+ |
API structure
- Configuration ā All props reference
- Methods ā Ref API, instance methods, and patterns
- Types ā TypeScript types, framework integration, troubleshooting

