MCPcopy
hub / github.com/Semantic-Org/Semantic-UI-React / getShorthand

Function getShorthand

test/specs/lib/factories-test.js:14–26  ·  view source on GitHub ↗
({
  Component = 'div',
  defaultProps,
  mapValueToProps = () => ({}),
  overrideProps,
  autoGenerateKey,
  value,
})

Source from the content-addressed store, hash-verified

12 * Returns the result of a shorthand factory.
13 */
14const getShorthand = ({
15 Component = 'div',
16 defaultProps,
17 mapValueToProps = () => ({}),
18 overrideProps,
19 autoGenerateKey,
20 value,
21}) =>
22 createShorthand(Component, mapValueToProps, value, {
23 defaultProps,
24 overrideProps,
25 autoGenerateKey,
26 })
27
28// ----------------------------------------
29// Common tests

Callers 10

itReturnsNullFunction · 0.85
itReturnsAValidElementFunction · 0.85
itAppliesDefaultPropsFunction · 0.85
itMergesClassNamesFunction · 0.85
itAppliesPropsFunction · 0.85
itOverridesDefaultPropsFunction · 0.85
factories-test.jsFile · 0.85

Calls 1

createShorthandFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…