Skip to content

Can't get rehypeReact to parse HTML into React nodes. #126

Answered by wooorm
gillescoolen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! What didn’t work?

What you call const result, isn’t the result. That’s a VFile. Which has a property called .result.
The example in the readme is a working example: https://github.com/rehypejs/rehype-react#use

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gillescoolen
Comment options

Answer selected by gillescoolen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants