Conversion Playbook

Conversion Playbook

Incrementally modernize your Relay Classic app in these steps:

Step 0: Install Relay v1.0

Install the latest version of Relay from the getting started guide-

Step 1: Incrementally convert to Relay Compat

Start converting your components and mutations to use the Relay Modern APIs from the 'react-relay/compat' module (createFragmentContainer, createRefetchContainer, createPaginationContainer, commitMutation). It will be easier to go from the leaf components up. The conversion scripts should make this step less tedious.

Step 2: Introduce <QueryRenderer>

Once all the