Skip to content

Commit 38bd70d

Browse files
authored
add className prop to Link
1 parent cbe0a0e commit 38bd70d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/link.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export default class Link extends React.Component<Props, State> {
1818
e.preventDefault();
1919
};
2020
render() {
21-
return <a href={this.props.to} onClick={this.navigate}>{this.props.children}</a>;
21+
return <a href={this.props.to} onClick={this.navigate} className={this.props.className}>{this.props.children}</a>;
2222
}
23-
}
23+
}

0 commit comments

Comments
 (0)