MCPcopy Create free account
hub / github.com/react-dnd/react-dnd / for

Method for

site/IndexPage.js:113–130  ·  view source on GitHub ↗
(let groupIndex in ExamplePages)

Source from the content-addressed store, hash-verified

111 }
112
113 for (let groupIndex in ExamplePages) {
114 const group = ExamplePages[groupIndex];
115 const pageKeys = Object.keys(group.pages);
116
117 for (let i = 0; i < pageKeys.length; i++) {
118 const key = pageKeys[i];
119 const page = group.pages[key];
120 const Component = Examples[key];
121
122 if (this.props.location === page.location) {
123 return (
124 <ExamplePage example={page}>
125 <Component />
126 </ExamplePage>
127 );
128 }
129 }
130 }
131
132 throw new Error(
133 'Page of location ' +

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected