MCPcopy
hub / github.com/react-component/form / argumentContainer

Function argumentContainer

src/utils.js:9–14  ·  view source on GitHub ↗
(Container, WrappedComponent)

Source from the content-addressed store, hash-verified

7}
8
9export function argumentContainer(Container, WrappedComponent) {
10 /* eslint no-param-reassign:0 */
11 Container.displayName = `Form(${getDisplayName(WrappedComponent)})`;
12 Container.WrappedComponent = WrappedComponent;
13 return hoistStatics(Container, WrappedComponent);
14}
15
16export function identity(obj) {
17 return obj;

Callers 1

createBaseFormFunction · 0.90

Calls 1

getDisplayNameFunction · 0.85

Tested by

no test coverage detected