Skip to content

Commit b659d6d

Browse files
committed
Changed syntax to avoid browser warning.
Using the constructor for instantiating JSX components has been deprecated: https://gist.github.com/sebmarkbage/ae327f2eda03bf165261
1 parent 32eabb9 commit b659d6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/api/mixins/State.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ var Tab = React.createClass({
7272
var isActive = this.isActive(this.props.to, this.props.params, this.props.query);
7373
var className = isActive ? 'active' : '';
7474
var link = Link(this.props);
75+
var link = (
76+
<Link {...this.props} />
77+
);
7578
return <li className={className}>{link}</li>;
7679
}
7780

0 commit comments

Comments
 (0)