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 traditional embedding via formcentric.js, formapp.js and window.formcentric.initFormcentric(), integration with React is component-based. Initialisation, teardown and re-embedding are serialised internally. This avoids typical problems affecting single-page applications, including duplicate initialisation, concurrent teardowns or inconsistent states for navigation and re-rendering.
React integration is therefore the recommended path for modern React applications.