Route object validation as props in React : <p>What is the correct way to validate route props in React class?</p>

<p>I tried:</p>

<ul>
<li><code>route: React.PropTypes.object</code> - my eslint complains: <em>Prop type
<code>object</code> is forbidden  react/forbid-prop-types</em> </li>
<li><code>route: React.PropTypes.instanceOf(React.propTypes)</code> -  this results in a
warning at runtime: <em>Right-hand side of 'instanceof' is not callable Check the render method of bla</em></li>
</ul>

<p>We have the policy to validate props enforced by eslint rules, how can I validate route object?</p>

<p>My code: </p>

<pre><code>var bla = React.createClass({
    displayName: 'bla',
    propTypes: {
        route: React.PropTypes.object, 
    })

class RootRoute extends React.Component {
    render() {
        return (
                &lt;Router history={hashHistory}&gt;
                    &lt;Route path="/" component={bla}/&gt;
                &lt;/Router&gt;
        );
    }
}
</code></pre>
