You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmessage=`Warning: You provided a \`${valuePropName}\` prop to a component without an \`${onChangePropName}\` handler.${
35
+
valuePropName==='value'
36
+
? `This will render a read-only field. If the field should be mutable use \`defaultValue\`. Otherwise, set either \`${onChangePropName}\` or \`readOnly\`.`
37
+
: `This breaks the component state. You must provide an \`${onChangePropName}\` function that updates \`${valuePropName}\`.`
38
+
}`;
39
+
40
+
// eslint-disable-next-line no-console
41
+
console.warn(message);
42
+
}
43
+
20
44
return[isControlled ? value : controlledValue,handleChangeIfUncontrolled];
0 commit comments