在下面的示例中,我应该在JSDoc @param块中添加什么,以使我的IntelliJ Webstorm IDE停止抛出错误:
Argument Type ComponentClass<undefined>
不可分配给参数类型 ??? ...`?/**
* Renders the passed component into a div
* @param { ??? } component // Question: <<<
*/
const myRenderFunc = (component) => (
<div>{component}</div>
)
*
。 - Rei Dien