【问题标题】:Flow error with react render method反应渲染方法的流量错误
【发布时间】:2016-10-30 22:14:46
【问题描述】:

我在尝试向我的一个测试应用程序添加一些流类型检查时遇到了以下错误。

我真的不明白这意味着什么,也不知道如何解决它。

render(): ?React.Element {

错误:

Element: 
Application of polymorphic type needs <list of 1 argument>. (Can use `*` for inferrable ones)

如果您需要更多代码(可能是类定义等),请告诉我。

【问题讨论】:

    标签: reactjs flowtype static-typing


    【解决方案1】:

    现在看来我们应该写Element&lt;any&gt; insted 只是Element

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-05-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多