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.

Terminal window
npx create-react-router@latest --template octahedroid/drupal-decoupled/starters/react-router
Terminal window
cp .env.example .env

Update values read copied file for instructions

Run the dev server:

Terminal window
yarn dev

Run the gql:sync script

Terminal window
yarn gql:sync

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