-
Notifications
You must be signed in to change notification settings - Fork 77
docs: update title and meta information on page change #474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| "react-dev-utils": "^6.1.1", | ||
| "react-dom": "^16.6.3", | ||
| "react-element-to-jsx-string": "^14.0.2", | ||
| "react-helmet-async": "^0.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@greg-a-smith does this need to be in regular dependencies or is dev deps ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like it could just live in dev dependencies.
| "react-dev-utils": "^6.1.1", | ||
| "react-dom": "^16.6.3", | ||
| "react-element-to-jsx-string": "^14.0.2", | ||
| "react-helmet-async": "^0.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like it could just live in dev dependencies.
greg-a-smith
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 🚢
Description
Using react-helmet-async, we can update the title and meta description in the head to be accurate on page change. I put the SetMeta component inside utils for now, but am open to moving it to it's own folder.
Also fixes the logo routing issue.
fixes #456 #468