将一个组件嵌套到另一个组件中有什么用

What is the use of nesting one component into another

我是打字稿的新手,试图理解我遇到的一种语法

  <PTable<OpsQL.IReportFile>
      data-test="Reporting"
      {...props}
    />

OpsQL.IReportFile有什么用。是约束还是别的什么。

PTable 是通用组件,<OpsQL.IReportFile> 是传递给组件的通用类型参数。