aknuds1/html-to-react

Parser.parse() is not a function

Closed this issue · 4 comments

When I tried to parse a html-string with the simple function "parse(html)" of the imported parser, an error occurred that "parse" is not a function...

Can you provide a code example?

let elem = Parser.parse(rawHTML)

Can you please provide a full example including imports? It's not clear how Parser is defined.

I'm going to close this, as I suspect it's a matter of using the library in the wrong way. Please re-open if you have more info :)