Warning: Failed propType: Invalid prop 'component' supplied to 'route'
<p>When I run the my app on browser I get on my console:</p>

<blockquote>
  <p>"Warning: Failed propType: Invalid prop 'component'  supplied to
  'route'"</p>
</blockquote>

<p><strong>My routes file:</strong></p>

<pre><code>import { Route, IndexRoute } from 'react-router';
import React from 'react';
import App from './container/App';
import PContainer from './container/PContainer/PContainer';
import PView from './container/PView/PView';

const routes = (
 &lt;Route path="/" component={App} &gt;
  &lt;IndexRoute component={PContainer} /&gt;
  &lt;Route path="/Posts View" component={PView} /&gt;
 &lt;/Route&gt;
);

export default routes;
</code></pre>

<p><strong>My PView file:</strong></p>

<pre><code>import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';

class PView extends Component {

 render() {
  return (
    &lt;div&gt;
     &lt;h1&gt;List of Posts&lt;/h1&gt;
   &lt;/div&gt;
  );
 }
}

export default connect()(PView);
</code></pre>

<p>Can anyone tell me why I am getting this error?</p>