MCPcopy Index your code
hub / github.com/reactjs/react-tabs / getModeFromProps

Function getModeFromProps

src/components/Tabs.jsx:48–50  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

46};
47
48const getModeFromProps = (props) => {
49 return props.selectedIndex === null ? MODE_UNCONTROLLED : MODE_CONTROLLED;
50};
51
52const checkForIllegalModeChange = (props, mode) => {
53 if (

Callers 2

TabsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…