Last active
October 6, 2019 08:51
-
-
Save HarisSpahija/07026facda8086394ce96bb118c8403a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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