thebushidocollective avatar

Reactflow Fundamentals

This covers the essentials for building node-based editors with React Flow, from basic setup through event handling. You get clear examples of nodes, edges, handles, and the built-in plugin components like Background, Controls, and MiniMap. The code samples are practical and show real configuration options, which matters because React Flow has a lot of knobs to turn. It's focused on fundamentals rather than advanced customization, so expect setup patterns and component APIs but not complex state management or custom node implementations. Good for getting a flow diagram running quickly or understanding how the pieces fit together before you start building something elaborate.

skills.sh installs
138
GitHub stars
200
last updated
Aug 21, 2026

Install

$ npx -y skills add thebushidocollective/han --skill reactflow-fundamentals --agent claude-code

Installs into .claude/skills of the current project.

Files

React Flow Fundamentals

Build customizable node-based editors and interactive diagrams with React Flow. This skill covers core concepts, setup, and common patterns for creating flow-based interfaces.

Installation

# npm
npm install @xyflow/react

# pnpm
pnpm add @xyflow/react

# yarn
yarn add @xyflow/react

Basic Setup

import { useCallback } from 'react';
import {
  ReactFlow,
  useNodesState,
  useEdgesState,
  addEdge,
  Background,
  Controls,
  MiniMap,
  type Node,
  type Edge,
  type OnConnect,
} from '@xyflow/react';

import '@xyflow/react/dist/style.css';

const initialNodes: Node[] = [
  {
    id: '1',
    type: 'input',
    data: { label: 'Start' },
    position: { x: 250, y: 0 },
  },
  {
    id: '2',
    data: { label: 'Process' },
    position: { x: 250, y: 100 },
  },
  {
    id: '3',
    type: 'output',
    data: { label: 'End' },
    position: { x: 250, y: 200 },
  },
];

const initialEdges: Edge[] = [
  { id: 'e1-2', source: '1', target: '2' },
  { id: 'e2-3', source: '2', target: '3' },
];

Sponsors

Details

Repository
github.com/thebushidocollective/han
Categories
Frontend Development, Automation & Workflows
First seen
Jun 3, 2026

More from thebushidocollective/han

All 14
1charleswiltgen avataraxiom-realitykit-refcharleswiltgen/axiomRealityKit API reference — Entity, Component, System, RealityView, Model3D, anchor types, material system, physics, collision, animation, audio, accessibility136skills.sh installs
2davila7 avatardesign-to-codedavila7/claude-code-templatesPixel-perfect Figma to React conversion using coderio. Generates production-ready code (TypeScript, Vite, TailwindCSS V4) with high visual fidelity. Features ro135skills.sh installs
3nexu-io avatarkami-decknexu-io/open-designProduce a print-grade slide deck in the kami (紙 / 纸) design system — warm parchment background (or ink-blue for cover / chapter slides), serif at one weight, in133skills.sh installs
4nexu-io avatarkami-landingnexu-io/open-designProduce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output read132skills.sh installs
5pedronauck avatartanstack-query-best-practicespedronauck/skillsTanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management. Activate when building data-driven React applica117skills.sh installs
6anthropics avatarHook Developmentanthropics/claude-codeThis skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", 1skills.sh installs