Type '{ name: string; id: string; }[]' has no properties in common with type '{ data?: IGroup[] | undefined; }'

前端 未结 0 1546
北荒
北荒 2020-12-11 07:31

I have a React component with a hook defined this way:

const [groups, setGroups] = useState([]);

with an IG

相关标签:
回答
  • 消灭零回复
提交回复
热议问题