API Cheatsheet
API Cheatsheet
A reference for translating between the Relay Classic and Relay Modern APIs.
To add a new root for relay components
Classic: <RelayRootContainer>
Modern: <QueryRenderer>
To add a new relay container
Classic: Relay.createContainer
Modern: createFragmentContainer
To add a new relay container that has changing data requirements
Classic: Relay.createContainer
Modern createRefetchContainer
To add a new paginating relay container
Classic: Relay.createContainer
Modern: createPaginationContainer