Enonic Market Enonic Market
React4xp starter icon

React4xp starter

Server side React and JSX

Screenshots

Unleash the full potential of client- and serverside rendered React in your sites!

React4XP builds directly on top of traditional XP controllers, making React look like any other templating engine out there - while expanding the possibilities for single-page sites and client-side driven apps when needed.

Releases

  1. 2.0.2

    • Bugfix: update gradle dependencies that caused build to fail post-jcenter
    • Compatibility:
      • 7.6.0
  2. 2.0.1

    • Updates lib-react4xp to v2.0.1, which fixes a bug ("BUILD_ENV not defined")
    • Compatibility:
      • 7.6.0
  3. 2.0.0

    • Update to webpack 5 (and webpack-cli 4. Also, react4xp lib and NPM package are both updated to 2.0.0).
    • MAJOR compatibility change: for webpack-4-based projects, use version 1.x (also applies to the lib and the react4xp NPM package).
    • Compatibility:
      • 7.6.0
  4. 1.7.1

    • Fixed bug: nashorn engine no longer fails to initialize in XP 7.7+
    • Compatibility:
      • 7.6.0
  5. 1.7.0

    • Improvements to react component error handling and reporting
    • Rendering methods in "custom flow" can take a request option
    • Object.assign is polyfilled in the nashorn SSR engine
    • Bugfixes
    • Compatibility:
      • 7.6.0
  6. 1.5.0

    • Version leap: syncs with versions of lib-react4xp (1.5.0) and npm-react4xp (1.5.4). These bring SSR-engine improvements such as concurrent multi-thread rendering and reporting of errors in react components
    • Compatibility:
      • 7.6.0
  7. 1.2.1

    • XP version update
    • Build works without starting with "npm install"
    • Compatibility:
      • 7.6.0
  8. 1.1.0

    • Add boilerplate for easy guillotine requests from both frontend apps or XP controllers
    • Simplify build.gradle by applying react4xp.gradle from the react4xp NPM package
    • Bugfixes
    • Compatibility:
      • 7.3.0
  9. 1.0.1

    • Fixed a bug in initial release 1.0.0
    • Compatibility:
      • 7.3.0
  10. 0.2.10

    • Bugfix: Windows build problem
    • Compatibility:
      • 7.0.0
  11. 0.1.10

    • Bugfix: Windows build problem
    • Compatibility:
      • 6.15.0

Clone React4xp starter

This version requires XP 7.0.0 or above.

Use Enonic CLI to set up your project.

Run the following command:

$

Enonic CLI documentation

This version requires XP 6.15.0

To initialize a new project based on React4xp starter, execute the command below. Remember to replace <com.company.myapp> with a unique name for your app, and </my/projects> with the location you want to store the project. <$XP_INSTALL> is the location of your XP installation.

OSX/Linux

Windows

The init-project tool initializes a new application project structure by retrieving a Git repository, removing all references to the Git repository, and adapting its build file properties (gradle.properties).

Complete init-project documentation