我有一个非常烦人的流量故障:
flow disable Cannot use `Component` [1] with less than 1 type argument.
我猜它会发生,因为流程需要 proptypes 注释。我的一些组件没有任何额外的道具。而且我不想只将空道具描述符放入我的组件中。我该如何解决这个问题?也许我理解错了。
import React, { Component } from "react";
type Props = {};
class SomeComponent extends Component<Props> {...