MCPcopy Create free account
hub / github.com/BetaSu/big-react / StaticMethodComponent

Function StaticMethodComponent

packages/react/src/__tests__/ReactElement-test.js:179–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 // // classic JS without JSX.
178 it('allows static methods to be called using the type property', () => {
179 function StaticMethodComponent() {
180 return React.createElement('div');
181 }
182 StaticMethodComponent.someStaticMethod = () => 'someReturnValue';
183
184 const element = React.createElement(StaticMethodComponent);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected