hexo-renderer-react icon indicating copy to clipboard operation
hexo-renderer-react copied to clipboard

dangerouslySetInnerHTML={{__html: this.props.page.body}} doesn't seem to work

Open Kakise opened this issue 6 years ago • 1 comments

Hello,

When I'm using the exemple show in the readme, it is not working. This line: dangerouslySetInnerHTML={{__html: this.props.page.body}} doesn't work

Kakise avatar May 19 '18 11:05 Kakise

The props for the top-level component are passed in by hexo depending on what is being rendered. You could try this.props.post.content, which I've seen as the main content for pages and posts.

vanwagonet avatar May 21 '18 14:05 vanwagonet