Skip to content

Commit e96e87e

Browse files
authored
change React.PropTypes to prop-types
1 parent e575c7c commit e96e87e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/server-router.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as React from 'react';
2+
import * as PropTypes from 'prop-types';
23
import Router, { initParams, initResult } from './router';
34

45
export default class ServerRouter extends Router {
@@ -10,7 +11,7 @@ export default class ServerRouter extends Router {
1011
};
1112
}
1213
static childContextTypes = {
13-
router: React.PropTypes.object
14+
router: PropTypes.object
1415
};
1516
getChildContext() {
1617
return {
@@ -27,4 +28,4 @@ export default class ServerRouter extends Router {
2728
</div>
2829
)
2930
}
30-
}
31+
}

0 commit comments

Comments
 (0)