ref的使用

import {
createRef,
} from ‘@antv/f2’;

private ref = createRef();

showItemMarker
triggerOn=“click”
// showItemMarker={false}
alwaysShow={false}
ref={this.ref}
/>
使用就是this.ref?.current?.hide();

你可能感兴趣的:(javascript,ref)