Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import React from 'react'
export default function ExamplePage(props) {
const { page } = props;
return (
<div class={"page"}>
<h1 class={"page-title"}>{page.title.rendered}</h1>
<div class={"page-content"} dangerouslySetInnerHTML={{ __html: props.page.content.rendered }}/>
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment