antvis/G2

The issue has been closed
如何封装组件api? #5574
duud666 posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
f2 版本 4.0.48
What problem does this feature solve?
背景上层封装使用,可抽离公共。比如tooltip,封装使用。类似如下
What does the proposed API look like?
const MyTooltip = (props) =>{
return <Tooltip {...props}/> }
<!-- generated by antv-issue-helper. DO NOT REMOVE -->