Skip to content

React Router v7

This is an example project of a React Router v7 app that connects to a Drupal installation using GraphQL.

Getting Started

Clone React Router v7 example project

Terminal window
npx create-react-router@latest --template octahedroid/drupal-decoupled/starters/react-router

Copy .dev.vars.example

Terminal window
cp .env.example .env

Update values read copied file for instructions

Development

Run the dev server:

Terminal window
yarn dev

Sync GraphQL Changes

Run the gql:sync script

Terminal window
yarn gql:sync

React Router docs

📖 See the React Router docs for details on supported features.