mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-19 13:56:04 +00:00
public commit
This commit is contained in:
15
app/src/ui/routes/test/tests/reactflow-test.tsx
Normal file
15
app/src/ui/routes/test/tests/reactflow-test.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user