React.PropsWithChildren with no other props?

后端 未结 0 1155
北荒
北荒 2021-01-03 17:07

I have a component with no props other than children, i.e.:

function Foo({ children }: React.PropsWithChildren<>) {}

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