viewof rf = render(({ useSetter }) => {
const nodes = [
{
id: "1",
data: { label: "Hello" },
position: { x: 0, y: 0 },
type: "input"
},
{
id: "2",
data: { label: "World" },
position: { x: 100, y: 100 }
}
];
return jsx`
<div>
<${ReactFlow} nodes=${nodes}>
<${Background} />
<${Controls} />
<//>
</div>
`;
})