Skip to content

Commit

Permalink
fix(react): fix broken prop type definition (#27)
Browse files Browse the repository at this point in the history
You need to pass a valid prop checking function to `PropTypes.arrayOf`. This caused
an error to be thrown in development for me:

```
Warning: Failed prop type: Unexpected token function
```
  • Loading branch information
skipjack authored and JiLiZART committed Jun 28, 2019
1 parent 09ff9af commit 19d7ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bbob-react/src/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (process.env.NODE_ENV !== 'production') {
Component.propTypes = {
container: PropTypes.node,
children: PropTypes.node.isRequired,
plugins: PropTypes.arrayOf(Function),
plugins: PropTypes.arrayOf(PropTypes.func),
componentProps: PropTypes.shape({
className: PropTypes.string,
}),
Expand Down

0 comments on commit 19d7ff2

Please sign in to comment.