MCPcopy Index your code
hub / github.com/react-bootstrap/react-bootstrap / getDefaultActiveKey

Function getDefaultActiveKey

src/Tabs.tsx:97–106  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

95};
96
97function getDefaultActiveKey(children) {
98 let defaultActiveKey;
99 forEach(children, (child) => {
100 if (defaultActiveKey == null) {
101 defaultActiveKey = child.props.eventKey;
102 }
103 });
104
105 return defaultActiveKey;
106}
107
108function renderTab(child) {
109 const { title, eventKey, disabled, tabClassName, tabAttrs, id } = child.props;

Callers 1

TabsFunction · 0.85

Calls 1

forEachFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…