In the client, how to read an HTML file to be used by react-html-parser?

I’m using https://github.com/wrakky/react-html-parser to generate a react component from an HTML file, but for it to work I need to read the HTML file on the client, how to do this without the need of an ajax request?