chore(examples): cleanup

This commit is contained in:
moklick
2024-08-28 16:18:05 +02:00
parent e02e3703c1
commit 5c85404209

View File

@@ -1,14 +0,0 @@
import { memo } from 'react';
import { Handle, Position } from '@xyflow/react';
const styles = { padding: '10px', background: 'green' };
const CustomNode = ({ data }) => (
<>
<div style={styles}>{data.label}</div>
<Handle type="source" position={Position.Top} id="a" />
<Handle type="source" position={Position.Bottom} id="b" />
</>
);
export default memo(CustomNode);