Skip to content

Instantly share code, notes, and snippets.

@astrotim astrotim/Post.js.diff
Last active Dec 29, 2017

Embed
What would you like to do?
added page title with react-helmet
import React from 'react';
import { createClient } from 'contentful';
+import Helmet from 'react-helmet';
return (
<React.Fragment>
+ <Helmet title={this.state.data.title} />
<h1>{this.state.data.title}</h1>
{this.state.data.content}
</React.Fragment>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.