Last updated:
The Formcentric React Client enables the embedding of Formcentric forms into React applications via the component FormcentricForm from the package @formcentric/client-react.
Unlike the classic embedding via formcentric.js, client.js, and window.formcentric.initFormcentric(), the React integration is component-based. Initialization, teardown, and re-embedding are serialized internally. This avoids typical single-page application issues such as duplicate initialization, competing teardowns, or inconsistent states during navigation and re-rendering.
React integration is therefore the recommended path for modern React applications.