We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a85267a commit 7536d96Copy full SHA for 7536d96
modules/components/Link.js
@@ -57,12 +57,13 @@ var Link = React.createClass({
57
58
// TODO: Deprecate passing props as params in v1.0
59
getUnreservedProps: function (props) {
60
+ var props = withoutProperties(props, RESERVED_PROPS);
61
warning(
- false,
62
+ Object.keys(props).length === 0,
63
'Passing props for params on <Link>s is deprecated, '+
64
'please use the `params` property.'
65
);
- return withoutProperties(props, RESERVED_PROPS);
66
+ return props;
67
},
68
69
/**
0 commit comments