MCPcopy Create free account
hub / github.com/Lobos/react-ui / warnIfValueIsNull

Function warnIfValueIsNull

docs/lib/react.js:7877–7883  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

7875}
7876
7877function warnIfValueIsNull(props) {
7878 if (props != null && props.value === null && !didWarnValueNull) {
7879 "development" !== 'production' ? warning(false, '`value` prop on `input` should not be null. ' + 'Consider using the empty string to clear the component or `undefined` ' + 'for uncontrolled components.') : void 0;
7880
7881 didWarnValueNull = true;
7882 }
7883}
7884
7885/**
7886 * Implements an <input> native component that allows setting these optional

Callers 1

react.jsFile · 0.85

Calls 1

warningFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…