We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61336bc commit 59a60daCopy full SHA for 59a60da
src/link.tsx
@@ -1,4 +1,5 @@
1
import * as React from 'react';
2
+import * as PropTypes from 'prop-types';
3
4
export interface Props {
5
to: any,
@@ -13,7 +14,7 @@ export interface State {
13
14
export default class Link extends React.Component<Props, State> {
15
context: any;
16
static contextTypes = {
- router: React.PropTypes.object
17
+ router: PropTypes.object
18
};
19
static isActive(to, path, activeOnlyWhenExact) {
20
return activeOnlyWhenExact ? path === to : path.indexOf(to) === 0;
0 commit comments