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 791466f commit 6d297d4Copy full SHA for 6d297d4
src/components/CodeBlock.js
@@ -15,9 +15,9 @@ class CodeBlock extends PureComponent {
15
highlightBlock(this.codeEl);
16
}
17
render() {
18
- const { value, language } = this.props;
+ const { value, language, ...remainingProps } = this.props;
19
return (
20
- <pre {...this.props}>
+ <pre {...remainingProps}>
21
<code
22
ref={ref => {
23
this.codeEl = ref;
0 commit comments