React Router v7
This is an example project of a React Router v7 app that connects to a Drupal installation using GraphQL.
Getting Started
Section titled “Getting Started”Clone React Router v7 example project
Section titled “Clone React Router v7 example project”npx create-react-router@latest --template octahedroid/drupal-decoupled/starters/react-routerCopy .dev.vars.example
Section titled “Copy .dev.vars.example”cp .env.example .envUpdate values read copied file for instructions
Development
Section titled “Development”Run the dev server:
yarn devSync GraphQL Changes
Section titled “Sync GraphQL Changes”Run the gql:sync script
yarn gql:syncReact Router docs
Section titled “React Router docs”📖 See the React Router docs for details on supported features.