Skip to content

Commit

Permalink
feat(proptypes): allow children as prop (#29)
Browse files Browse the repository at this point in the history
This change allows `children` to be passed as a prop to enable custom
meta tags to be rendered.
  • Loading branch information
Jonathan Golden authored Nov 5, 2020
1 parent ff37716 commit 9c7a57b
Show file tree
Hide file tree
Showing 3 changed files with 1,783 additions and 1,437 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ The interface for `react-seo` is denoted below:

```javascript
SEO.propTypes = {
children: oneOfType([
arrayOf(node),
node,
]),
title: string,
description: string,
canonical: string,
Expand Down Expand Up @@ -217,6 +221,7 @@ SEO.propTypes = {
};

SEO.defaultProps = {
children: null,
article: false,
author: '',
description: '',
Expand Down
Loading

0 comments on commit 9c7a57b

Please sign in to comment.