import React, {PropTypes} from 'react';

class MyComponent extends React.Component {
  static propTypes = {
    foo: PropTypes.string,
    bar: PropTypes.number.deprecated("Use props.foo instead of props.bar"),
  });
}

<MyComponent foo="test"/>; // Works!
<MyComponent bar={3.14}/>; // Deprecation Warning: Use props.foo instead of props.bar (MyComponent)
