We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 541d6e9 commit 5bf8dfeCopy full SHA for 5bf8dfe
lib/utils/shims.es6
@@ -20,6 +20,6 @@ export function int(a: string): number {
20
21
export function dontSetMe(props: Object, propName: string, componentName: string) {
22
if (props[propName]) {
23
- throw new Error(`Invalid prop ${propName} passed to ${componentName} - do not set this, set it on the child.`);
+ return new Error(`Invalid prop ${propName} passed to ${componentName} - do not set this, set it on the child.`);
24
}
25
0 commit comments