MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / isControlled

Function isControlled

code/redux/public/app.js:4699–4702  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

4697var didWarnUncontrolledToControlled = false;
4698
4699function isControlled(props) {
4700 var usesChecked = props.type === 'checkbox' || props.type === 'radio';
4701 return usesChecked ? props.checked != null : props.value != null;
4702}
4703
4704/**
4705 * Implements an <input> host component that allows setting these optional

Callers 2

initWrapperStateFunction · 0.70
updateWrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected