highlight-code-blocks is library aimed at react developers who want to implement highlight.js in their project.
Use the npm package manager to install highlight-code-blocks.
npm install highlight-code-blocks
import CodeHighlighter from "highlight-code-blocks"; <CodeHighlighter>---code block as string---</CodeHighlighter>;
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.