Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Creates React Flow custom node components in TypeScript with typed data, handles, and Zustand store integration.
23% 95%+73 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 5 of 22 without it.
3 of 3 safety checks passed
Not used yet
import { memo, useCallback } from 'react';
import { NodeProps, Node, Handle, Position, NodeResizer } from '@xyflow/react';
import { {{NodeData}} } from '@/types';
import { useAppStore } from '@/store';
import { cn } from '@/utils/utils';
type {{NodeName}}Props = NodeProps<Node<{{NodeData}}>>;
/**
* {{NodeName}} - Description of what this node does
*
* @example
* // Node data structure
* const data: {{NodeData}} = {
* title: 'Example',
* // ... other properties
* };
*/
export const {{NodeName}} = memo(function {{NodeName}}({
id,
data,
selected,
width,
height,
}: {{NodeName}}Props) {
// Store selectors - use individual selectors for performance
const updateNode = useAppStore((state) => state.updateNode);
const canvasMode = useAppStore((state) => state.canvasMode);
const isEditing = canvasMode === 'editing';
// Handlers
const handleTitleChange = useCallback(
(title: string) => {
updateNode(id, { title });
},
[id, updateNode]
);
return (
<>Published skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.