diff --git a/docs-site/src/components/Examples/index.js b/docs-site/src/components/Examples/index.js index 5f5112342..28a90f4a1 100644 --- a/docs-site/src/components/Examples/index.js +++ b/docs-site/src/components/Examples/index.js @@ -106,7 +106,7 @@ import "react-datepicker/dist/react-datepicker.css"; export default class exampleComponents extends React.Component { componentDidMount() { - hljs.highlightAll(); + hljs.initHighlightingOnLoad(); hljs.registerLanguage("javascript", hljsJavaScriptLanguage); }