react-delayed-render
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
delayedRender(components: Array<ComponentDefinition>, lookup: Object = global)
ComponentDefinition
- name - Component exposed to the to lookup object (global/window). This should be a string.
- props - The component props.
- name - Element
id
attribute.
HTML
The server should output the <script>
tag to initialize the components. This is an example from the implementation on in2media.com.
...