Skip to content

Commit 2f0b8bf

Browse files
committed
PropTypes.component accepts a string
1 parent e311a26 commit 2f0b8bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/PropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export var location = shape({
2222
key: string
2323
});
2424

25-
export var component = func;
25+
export var component = oneOfType([ func, string ]);
2626
export var components = oneOfType([ component, object ]);
2727
export var route = oneOfType([ object, element ]);
2828
export var routes = oneOfType([ route, arrayOf(route) ]);

0 commit comments

Comments
 (0)