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. 0.2.11

    • Adds proper support for pages and layouts (react4xp-templates package)
    • Compatibility:
      • 7.0.0
  2. 0.2.10

    • Bugfix: Windows build problem
    • Compatibility:
      • 7.0.0
  3. 0.2.9

    • react4xp.properties instead of stringified JSON in build.gradle. Added support: users can now write custom webpack.config, refer to it in react4xp.properties to expand/adapt/replace the standard webpack setup that compiles the react entries and the dependencies.
    • Compatibility:
      • 7.0.0
  4. 0.2.8

    • This starter can now relatively easily add custom nashorn-polyfill code (described in comments in build.gradle) for cases where user react components need more polyfill to be rendered on the server side. The added code will be auto-compiled and added to the default nashorn polyfills during render engine initialization.
    • Compatibility:
      • 7.0.0
  5. 0.2.7

    • A parent XP project (like this starter) can and must now define its own react and react-dom versions in packages.json. These versions will then be served (as the "externals" chunk) and used in serverside rendering.
    • Compatibility:
      • 7.0.0
  6. 0.2.6

    • Bugfix: XP devmode with 'npm run watch' works
    • Compatibility:
      • 7.0.0
  7. 0.2.0

    • Initial Beta release for early adopters and testers, for XP 7.0
    • Compatibility:
      • 7.0.0
  8. 0.1.10

    • Bugfix: Windows build problem
    • Compatibility:
      • 6.15.0
  9. 0.1.9

    • XP6-version of the upgrade from 0.2.8 to 0.2.9: react4xp.properties instead of stringified JSON in build.gradle. Added support: users can now write custom webpack.config, refer to it in react4xp.properties to expand/adapt/replace the standard webpack setup that compiles the react entries and the dependencies.
    • Compatibility:
      • 6.15.0
  10. 0.1.8

    • XP6 version of updates 0.2.6, 0.2.7 and 0.2.8: fixes XP devmode bug, and feature updates: react version control and custom nashorn polyfilling, both controlled from the app project (this starter).
    • Compatibility:
      • 6.15.0
  11. 0.1.2

    • Upgraded sub-library references
    • Improved and more XP-correct project structure
    • Compatibility:
      • 6.15.0
  12. 0.1.0

    • Initial Beta release for early adopters and testers, for XP 6.15+
    • Compatibility:
      • 6.15.0

Comments

Clone React4xp starter

This version requires XP 7.0.0 or above.

Use Enonic CLI to set up your project.

Run the following command:

$

…and choose "React4xp starter" from the list.

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