The whole page is created with create-react-app without eject. It uses newest version of React (17.0.2) and Relay (11.0.0) that is now available (4.4.2021) and everything is coded in TypeScript. You can find here how to use useLazyLoadQuery
, useFragment
and usePaginationFragment
. Backend is available in PHP and NodeJS.
The whole page is created with create-react-app without eject. It uses newest version of React (17.0.2) and Relay (13.0.0) that is now available (4.4.2021) and everything is coded in TypeScript. You can find here how to use useLazyLoadQuery
, useFragment
and usePaginationFragment
. Backend is available in PHP and NodeJS.
This project was created because of lot of hours spent searching, trying and debugging. There are several articles and projects about Relay, but those are mostly using older versions, or it is just a small sample of a code without other major parts. Here is a complete web application with everything you need to start using React, Relay and GraphQL.