【React】如何画一个箭头
下载 react-xarrows,官方文档地址
npm i react-xarrows
基本使用
<Xarrow start="box1" end="box2" />
<Xarrow start="box2" end="box3" />
基本属性
<Xarrow
start="box1"
end="box2"
headSize={4} // 箭头大小
strokeWidth={2} // 线宽
color="#589AFE" // 颜色
dashness={true} // 虚线
/>