Created
July 10, 2018 00:28
-
-
Save galenweber/0d03ef8842097cecd6da79adc85de8af to your computer and use it in GitHub Desktop.
Terms React page component
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
export default class Terms extends React.Component<Props, State> { | |
constructor(props: Props) { | |
super(props); | |
} | |
static PRISMIC_FETCH_REQUEST() { | |
return (ctx: any) => ctx.api.getByUID( | |
// page type | |
'page', | |
// uid | |
'terms', | |
); | |
} | |
render() { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment