Files
xyflow/examples/react
Amr-Shams fb9684802a feat(examples): sync dropdown with current example on refresh
The dropdown now correctly reflects the current example after a page refresh. This is achieved by parsing the example name from the URL and setting the dropdown's initial state accordingly. Also, an  has been added to the dropdown for improved accessibility.
2025-07-16 19:01:27 +03:00
..
2024-09-12 11:57:39 +02:00
2025-04-09 10:36:16 +02:00
2024-06-27 17:22:17 +02:00

React Flow examples

This Vite app is used internally to develop and test the library.

Start local dev server

pnpm dev

Adding new example

Development of the library is done against src/examples. Feel free to add new implementations for features that you develop.

  1. Create a new folder & flow at src/examples/
  2. Register the new route in src/App/routes.ts

Adding new E2E implementation

E2E testing is done against the flows implemented in src/generic-tests. Adding a new configuration file automatically adds a new route under http://localhost:3000/tests/generic/$foldername/$filename. For further documentation visit xyflow/tests/playwright.