Appendix
Contents
React4XP lets front-end developers build Enonic XP applications with React. React components are rendered server-side and then hydrated in the browser by default, so the same React code runs on both the server and the client (isomorphic rendering).
| This documentation covers React4XP 7.x, which builds on React 19 and requires Enonic XP 8. |
How React4XP is distributed
React4XP comes in two parts:
-
Library (
lib-react4xp) -
The Enonic XP library that does the rendering. It exposes the
renderandprocessHtmlfunctions and theReact4xpobject - all documented in the Library reference. Available on Enonic Market and GitHub. Your React sources are compiled by the companion npm build tool@enonic/react4xp(npm). -
Starter (
starter-react4xp) -
A ready-to-run project that bundles the library, the
@enonic/react4xpbuild integration, and a small demo - soenonic project creategives you a working React4XP setup in one step. Source on GitHub.
The demo bundled in the starter is the Headless Movie DB, a complete example application also published on Enonic Market.
In this appendix
-
Library reference - the
render/processHtmlfunctions and theReact4xpobject. -
SSR engine and Hydration - how server- and client-side rendering work.
-
Configuration, Build, Chunks and Entries - compilation and runtime internals.