Open arukumar opened 8 years ago
Have you read the README and looked at the examples?
You have to call DocumentMeta.renderAsHTML()
and inject the result in your server side rendered HTML.
@arukumar unfortunately it's really difficult. I have been struggling for about one week to make it render on server side using data coming from another server. You should do it using react-redux and react-thunk. place your API call in an action, then call the action in onEnter event of your route, then in call back onEnter event to continue rendering in route dispatch(theAPICallAction()).then(callBackOfOnEnterEvent())
.
The API call action should update your redux store, which gives you ability of using received data in your component.
I know It is a little bit complicated, but the result would be amazing
Hi, can you please explain, how to add meta tag dynamically in server side rending. I have written something like
but how to add them to sever.js