Update index.js
removed unneeded comments, switched to double quotes
This commit is contained in:
@@ -20,18 +20,15 @@ const onConnectEnd = (event) => console.log('on connect end', event);
|
|||||||
const CustomInput = () => (
|
const CustomInput = () => (
|
||||||
<>
|
<>
|
||||||
<div>Only connectable with B</div>
|
<div>Only connectable with B</div>
|
||||||
<Handle type="source" position="right" id='a' isValidConnection={isValidConnection} />
|
<Handle type="source" position="right" id="a" isValidConnection={isValidConnection} />
|
||||||
{/* <Handle type="source" position="right" id='a' /> */}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
const CustomNode = ({ id }) => (
|
const CustomNode = ({ id }) => (
|
||||||
<>
|
<>
|
||||||
<Handle type="target" position="left" isValidConnection={isValidConnection} />
|
<Handle type="target" position="left" isValidConnection={isValidConnection} />
|
||||||
{/* <Handle type="target" position="left" /> */}
|
|
||||||
<div>{id}</div>
|
<div>{id}</div>
|
||||||
<Handle type="source" position="right" isValidConnection={isValidConnection} />
|
<Handle type="source" position="right" isValidConnection={isValidConnection} />
|
||||||
{/* <Handle type="source" position="right" /> */}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user