import React from 'react';

class Foo extends React.Component<{required: number, ...}> {
  static defaultProps: any;
}

class Bar extends React.Component<{required: number, ...}> {
  static defaultProps: any;
}

<Foo/>;
<Bar/>;
