File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ var Route = React.createClass({
105
105
106
106
propTypes : {
107
107
location : React . PropTypes . oneOf ( [ 'hash' , 'history' ] ) . isRequired ,
108
- handler : React . PropTypes . component . isRequired ,
108
+ handler : React . PropTypes . any . isRequired ,
109
109
path : React . PropTypes . string ,
110
110
name : React . PropTypes . string ,
111
111
} ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ var RouteStore = {
28
28
29
29
// Make sure the <Route> has a valid React component for a handler.
30
30
invariant (
31
- React . isValidComponent ( route . props . handler ) ,
31
+ React . isValidClass ( route . props . handler ) ,
32
32
'The handler for Route "' + ( route . props . name || route . props . path ) + '" ' +
33
33
'must be a valid React component'
34
34
) ;
You can’t perform that action at this time.
0 commit comments