reactflow-v12
Installation
SKILL.md
React Flow v12 Skill (Progressive Disclosure)
Use this skill for production React Flow v12 work. Keep SKILL.md for invariants only. Load reference files only as needed.
Critical Setup Rules
- Install and import v12 only: use
@xyflow/react(notreactflow). - Use named imports only:
import { ReactFlow, ... } from '@xyflow/react'(no defaultReactFlowimport). - Import styles from
@xyflow/react/dist/style.css(or@xyflow/react/dist/base.cssfor custom theming). - Treat this skill as
@xyflow/reactv12-only (>=12.0.0 <13.0.0). If the project is v11, load the migration reference first. - Use immutable node/edge updates only. Do not mutate node or edge objects in place.