I think there is something funky with the html-react-parser
library. When I set a CSS style on an element your app crashes and I get the following console error:
Uncaught TypeError: styleToJS is not a function
The error is pointing to line 53 in html-react-parser.js. Looking at html-react-parser.js I see the following near the top:
import require$$0 from "/-/style-to-js@v1.1.0-D4OLrVO2GnUfbfWScQQj/dist=es2020,mode=imports/optimized/style-to-js.js";
var styleToJS = require$$0.default;
Obviously something is not working right because styleToJS is being reported as not a function in the error message.
I was able to work around this by removing html-react-parser and using dompurify instead (it’s what I used in my version of this project).