React server side rendering for MODX Revo
Allow to render markup based on React on server.
This module needs node-react module to work properly.
- First of all you have to install
modx-react
via package manager - There is
modxreact.assets
option at module config. It's the path to you public assets. Cause i'm usually usemodxsite
for work the path is relative to it. But you can manage by your own - React don't like foreign whitespace at the markup. If you are using
modxSmarty
thattemplate controller
will help - Run
node-react
at you server - Now you can render your React components via
snippet