Skip to content

Instantly share code, notes, and snippets.

@HarisSpahija
Last active October 6, 2019 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HarisSpahija/07026facda8086394ce96bb118c8403a to your computer and use it in GitHub Desktop.
Save HarisSpahija/07026facda8086394ce96bb118c8403a to your computer and use it in GitHub Desktop.
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