html react parser replace add new classname code example Example: libraries like html-react-parser $ npm install html-react-parser --save