File contents React Flow Node
Create React Flow node components following established patterns with proper TypeScript types and store integration.
Quick Start
Copy templates from assets/ and replace placeholders:
{{NodeName}} → PascalCase component name (e.g., VideoNode)
{{nodeType}} → kebab-case type identifier (e.g., video-node)
{{NodeData}} → Data interface name (e.g., VideoNodeData)
Templates
assets/template.tsx - Node component
assets/types.template.ts - TypeScript definitions
Node Component Pattern
export const MyNode = memo(function MyNode({
id,
data,
selected,
width,
height,
}: MyNodeProps) {
const updateNode = useAppStore((state) => state.updateNode);
const canvasMode = useAppStore((state) => state.canvasMode);
return (
<>
<NodeResizer isVisible={selected && canvasMode === 'editing'} />
<div className="node-container">
<Handle type="target" position={Position.Top} />
{/* Node content */}
<Handle type="source" position={Position.Bottom} />
</div>
</>
);
});
Type Definition Pattern
export interface MyNodeData extends Record<string, unknown> {
title: string;
description?: string;
}
export type MyNode = Node<MyNodeData, 'my-node'>;
Integration Steps
Add type to src/frontend/src/types/index.ts
Create component in src/frontend/src/components/nodes/
Export from src/frontend/src/components/nodes/index.ts
Add defaults in src/frontend/src/store/app-store.ts
Register in canvas nodeTypes
Add to AddBlockMenu and ConnectMenu
1 --- 2 name: react-flow-node-ts 3 description: React Flow Node 4 --- 5 # React Flow Node 6 7 Create React Flow node components following established patterns with proper TypeScript types and store integration. 8 9 ## Quick Start 10 11 Copy templates from [assets/](assets/) and replace placeholders: 12 - `{{NodeName}}` → PascalCase component name (e.g., `VideoNode`) 13 - `{{nodeType}}` → kebab-case type identifier (e.g., `video-node`) 14 - `{{NodeData}}` → Data interface name (e.g., `VideoNodeData`) 15 16 ## Templates 17 18 - [assets/template.tsx](assets/template.tsx) - Node component 19 - [assets/types.template.ts](assets/types.template.ts) - TypeScript definitions 20 21 ## Node Component Pattern 22 23 ```tsx 24 export const MyNode = memo(function MyNode({ 25 id, 26 data, 27 selected, 28 width, 29 height, 30 }: MyNodeProps) { 31 const updateNode = useAppStore((state) => state.updateNode); 32 const canvasMode = useAppStore((state) => state.canvasMode); 33 34 return ( 35 <> 36 <NodeResizer isVisible={selected && canvasMode === 'editing'} /> 37 <div className="node-container"> 38 <Handle type="target" position={Position.Top} /> 39 {/* Node content */} 40 <Handle type="source" position={Position.Bottom} /> 41 </div> 42 </> 43 ); 44 }); 45 ``` 46 47 ## Type Definition Pattern 48 49 ```typescript 50 export interface MyNodeData extends Record<string, unknown> { 51 title: string; 52 description?: string; 53 } 54 55 export type MyNode = Node<MyNodeData, 'my-node'>; 56 ``` 57 58 ## Integration Steps 59 60 1. Add type to `src/frontend/src/types/index.ts` 61 2. Create component in `src/frontend/src/components/nodes/` 62 3. Export from `src/frontend/src/components/nodes/index.ts` 63 4. Add defaults in `src/frontend/src/store/app-store.ts` 64 5. Register in canvas `nodeTypes` 65 6. Add to AddBlockMenu and ConnectMenu
ComeOnOliver/skillshub/tree/main/skills/microsoft/skills/react-flow-node-ts commit 79d220a4c1
Frequently asked questions How do I install the React Flow Node TS skill? Run npx skillmds@latest add comeonoliver/react-flow-node-ts in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the React Flow Node TS skill do? React Flow Node It is listed under Web & Frontend on SkillMD.
Is React Flow Node TS safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with React Flow Node TS? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is React Flow Node TS free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published React Flow Node TS? ComeOnOliver (@comeonoliver) published this skill. Their other Agent Skills are listed on their SkillMD profile.