relay-context-provider
Adds relay environment and variables to React Context. Use then when you are fetching queries manually and need to render fragmentContainers
. This is useful for server side rendering.
Install
yarn add relay-context-provider
Usage
;;;; { const data = await ; const html = ReactDOMServer; return html;});
Isomorphic Example
See the full isomorphic/universal/server side rendered example here: https://github.com/robrichard/relay-modern-isomorphic-example