这是什么组件?

What kind of component is this?

https://github.com/bvaughn/react-virtualized/blob/master/docs/creatingAnInfiniteLoadingList.md

如何将 MyComponent 整合到 React 应用程序中?

我认为令人困惑的部分是在函数参数中执行了解构。它基本上是一个 React 组件——函数获取 props 并返回 JSX 元素。然而,你有 props 解构而不是 props 参数,所以例如你不必键入 props.abc 而只是 abc.

ES 6 功能 - 此处有更多信息:https://simonsmith.io/destructuring-objects-as-function-parameters-in-es6/