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 render and processHtml functions and the React4xp object - 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/react4xp build integration, and a small demo - so enonic project create gives 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


Contents

Contents