hexo-renderer-react
hexo-renderer-react copied to clipboard
dangerouslySetInnerHTML={{__html: this.props.page.body}} doesn't seem to work
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
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.