Skip to content

Commit 6d297d4

Browse files
committed
fix(CodeBlock): correct remainingProps
1 parent 791466f commit 6d297d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/CodeBlock.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class CodeBlock extends PureComponent {
1515
highlightBlock(this.codeEl);
1616
}
1717
render() {
18-
const { value, language } = this.props;
18+
const { value, language, ...remainingProps } = this.props;
1919
return (
20-
<pre {...this.props}>
20+
<pre {...remainingProps}>
2121
<code
2222
ref={ref => {
2323
this.codeEl = ref;

0 commit comments

Comments
 (0)