反应渲染方法的流程错误
Flow error with react render method
我 运行 在尝试向我的一个测试应用程序添加一些流类型检查时遇到以下错误。
我不太明白这是什么意思,也不知道如何解决。
render(): ?React.Element {
错误:
Element:
Application of polymorphic type needs <list of 1 argument>. (Can use `*` for inferrable ones)
如果您需要更多代码(可能 class 定义等),请告诉我。
看来现在我们应该写成Element<any>
而不是Element
我 运行 在尝试向我的一个测试应用程序添加一些流类型检查时遇到以下错误。
我不太明白这是什么意思,也不知道如何解决。
render(): ?React.Element {
错误:
Element:
Application of polymorphic type needs <list of 1 argument>. (Can use `*` for inferrable ones)
如果您需要更多代码(可能 class 定义等),请告诉我。
看来现在我们应该写成Element<any>
而不是Element