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

Function Component

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

Source from the content-addressed store, hash-verified

189 // // classic JS without JSX.
190 it('identifies valid elements', () => {
191 function Component() {
192 return React.createElement('div');
193 }
194
195 expect(React.isValidElement(React.createElement('div'))).toEqual(true);
196 expect(React.isValidElement(React.createElement(Component))).toEqual(true);

Callers 1

renderWithHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected