React Router
This is an example project of a React Router app that connects to a Drupal installation using GraphQL.
Getting Started
Section titled “Getting Started”Clone React Router example project
Section titled “Clone React Router example project”npx create-react-router@latest --template octahedroid/drupal-decoupled/starters/react-routeryarn create react-router --template octahedroid/drupal-decoupled/starters/react-routerpnpm create react-router@latest --template octahedroid/drupal-decoupled/starters/react-routerDevelopment
Section titled “Development”Run the dev server:
npm run devyarn devpnpm devSync GraphQL Changes
Section titled “Sync GraphQL Changes”Run the gql:sync script
npm run gql:syncyarn gql:syncpnpm run gql:syncReact Router docs
Section titled “React Router docs”📖 See the React Router docs for details on supported features.