mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
16 lines
461 B
TypeScript
16 lines
461 B
TypeScript
import { ReactFlow } from "@xyflow/react";
|
|
|
|
const initialNodes = [
|
|
{ id: "1", position: { x: 0, y: 0 }, data: { label: "1" } },
|
|
{ id: "2", position: { x: 0, y: 100 }, data: { label: "2" } }
|
|
];
|
|
const initialEdges = [{ id: "e1-2", source: "1", target: "2" }];
|
|
|
|
export default function ReactFlowTest() {
|
|
return (
|
|
<div style={{ width: "100vw", height: "100vh" }}>
|
|
<ReactFlow nodes={initialNodes} edges={initialEdges} />
|
|
</div>
|
|
);
|
|
}
|