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-reactvia package manager - There is
modxreact.assetsoption at module config. It's the path to you public assets. Cause i'm usually usemodxsitefor 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
modxSmartythattemplate controllerwill help - Run
node-reactat you server - Now you can render your React components via
snippet