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

Function createShorthandFactory

src/lib/factories.js:159–165  ·  view source on GitHub ↗
(Component, mapValueToProps)

Source from the content-addressed store, hash-verified

157 * @returns {function} A shorthand factory function waiting for `val` and `defaultProps`.
158 */
159export function createShorthandFactory(Component, mapValueToProps) {
160 if (typeof Component !== 'function' && typeof Component !== 'string') {
161 throw new Error('createShorthandFactory() Component must be a string or function.')
162 }
163
164 return (val, options) => createShorthand(Component, mapValueToProps, val, options)
165}
166
167// ============================================================
168// HTML Factories

Callers 15

goodUsageFunction · 0.90
badUsageFunction · 0.90
PopupHeader.jsFile · 0.90
PopupContent.jsFile · 0.90
DropdownItem.jsFile · 0.90
DropdownHeader.jsFile · 0.90
DropdownText.jsFile · 0.90
ModalDimmer.jsFile · 0.90
ModalHeader.jsFile · 0.90
ModalActions.jsFile · 0.90
ModalContent.jsFile · 0.90

Calls 1

createShorthandFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…