Initialize server side rendered components when the app is ready. This requires the server to output a custom script tag, that contains the components and data to render.
We are using this solution with ReactJS.net, to enable partial caching of the React views.
There is an open issue to implement the server side part of this solution:
;if global_components && Array;global_components = null;
delayedRender(components: Array<ComponentDefinition>, lookup: Object = global)
- name - Component exposed to the to lookup object (global/window). This should be a string.
- props - The component props.
- name - Element
The server should output the
<script> tag to initialize the components. This is an example from the implementation on in2media.com.