Next.js Relay GraphQL Pokemon example
Here is a quick and dirty Pokemon TCG web UI using Next.js, Relay, and the TCGdex GraphQL API. Initially this was supposed to be a proof-of-concept of the Next.js rewrites
feature, but that doesn't work with the Next.js static export for the GitHub Pages deploy, so I removed it.
Source code on GitHub here: https://github.com/saltycrane/next-relay-graphql-pokemon-example
Deployed to GitHub Pages here: https://saltycrane.github.io/next-relay-graphql-pokemon-example/
Uses¶
Doesn't use¶
- Next.js App Router or React Server Components
- Next.js Server Side Rendering
- Next.js Image Optimization
- React Transitions
- Relay Fragments
Related posts
- How to use ast-grep with GraphQL — posted 2024-09-24
- Next.js App Router (RSC) projects w/ open source code — posted 2024-07-30
- Example Node.js Passport.js SAML app using OneLogin — posted 2024-05-10
- Aphrodite to CSS Modules codemod — posted 2022-12-09
- Simple codemod example with jscodeshift — posted 2021-05-03