Example app showing how perform simple server-side rendering (SSR) using react-relay-network-modern and associated middleware, react-relay-network-modern-ssr.
NOTE:
- This is meant for Relay 1.5, since it relies on an experimental undocumented
QueryRenderer
propdataFor='STORE_THEN_NETWORK'
, which will read from store data before network if available - This uses Artsy's fork of Relay 1.5 while language plugin support is worked on, but should work just fine with 1.5
git clone [email protected]:damassi/react-relay-network-modern-ssr-example.git
cd react-relay-network-modern-ssr-example
yarn install
yarn start