Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 969 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 969 Bytes

modx-react

React server side rendering for MODX Revo

Main goal

Allow to render markup based on React on server.

Dependencies

This module needs node-react module to work properly.

Run

  1. First of all you have to install modx-react via package manager
  2. There is modxreact.assets option at module config. It's the path to you public assets. Cause i'm usually use modxsite for work the path is relative to it. But you can manage by your own
  3. React don't like foreign whitespace at the markup. If you are using modxSmarty that template controller will help
  4. Run node-react at you server
  5. Now you can render your React components via snippet