Flow: property `Component`. Too few type arguments. Expected at least 1

Created on 24 Nov 2017  路  1Comment  路  Source: facebook/flow

If this is a bug, please try reproducing using https://flow.org/try/.

image

/* @flow */
import React, { Component } from "react"

class MyComponent extends Component {

}

Most helpful comment

Component requires at least one type argument:

class MyComponent extends Component<{}> {

}

>All comments

Component requires at least one type argument:

class MyComponent extends Component<{}> {

}
Was this page helpful?
0 / 5 - 0 ratings