Skip to content

Commit 2bbee86

Browse files
committed
Add note on PropTypes
1 parent 00c4ca6 commit 2bbee86

File tree

1 file changed

+2
-0
lines changed
  • packages/gatsby-transformer-react-docgen

1 file changed

+2
-0
lines changed

packages/gatsby-transformer-react-docgen/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ You'll also need to include a source-plugin, such as
2424
[gatsby-source-filesystem](https://www.npmjs.com/package/gatsby-source-filesystem),
2525
so that the transformer has access to source data.
2626

27+
Note that at least one of your React Components must have PropTypes defined.
28+
2729
## How to query
2830

2931
An example _graphql_ query to get nodes:

0 commit comments

Comments
 (0)