Spaces:
Build error
Build error
File size: 566 Bytes
f348336 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import React from 'react';
import ReactFlow from 'reactflow';
import 'reactflow/dist/style.css';
const initialNodes = [
{
id: '1',
type: 'input',
data: { label: 'Hello' },
position: { x: 250, y: 0 },
},
{
id: '2',
data: { label: 'World' },
position: { x: 250, y: 100 },
},
];
const initialEdges = [{ id: 'e1-2', source: '1', target: '2' }];
const App = () => {
return (
<div style={{ width: '100%', height: '500px' }}>
<ReactFlow nodes={initialNodes} edges={initialEdges} />
</div>
);
};
export default App; |