
/* @flow */

import React, { Element, Component } from "react"

type Props = {
  onClick?: () => void,
}

class MyComponent extends Component<void, Props, State> {
}

export default MyComponent;


/* @flow */

import React, { Element, Component } from "react"

type Props = {
  onClick?: () => void,
}

class MyComponent extends Component<void, Props, void> {
}

export default MyComponent;

Remove undefined State type from test component definition
Remove undefined State type from test component definition
