Const
Experimental
Create portal based on react component, This feature is experimental and may change in the future.
With any html element:
import { Port } from '@joint/react';<Port.Item id="port-one" x={0} y={0}> <foreignObject /></Port.Item> Copy
import { Port } from '@joint/react';<Port.Item id="port-one" x={0} y={0}> <foreignObject /></Port.Item>
With SVG element:
import { Port } from '@joint/react';<Port.Item id="port-one" x={0} y={0}> <circle cx={0} cy={0} r={5} fill="red" /></Port.Item> Copy
import { Port } from '@joint/react';<Port.Item id="port-one" x={0} y={0}> <circle cx={0} cy={0} r={5} fill="red" /></Port.Item>
Create portal based on react component, This feature is experimental and may change in the future.