Demo
See the demo here.
Installation
Install react-highlight.js using NPM:
npm install react-highlight.js --save
Choose a highlight.js theme and make sure it's included in your index file.
And then use react-highlight.js to display your text like so:
{content}
License
react-highlight.js is available under the MIT License.