function createShorthandFactory(Component, mapValueToProps, generateKey) {
  if (typeof Component !== 'function' && typeof Component !== 'string') {
    throw new Error('createShorthandFactory() Component must be a string or function.');
  }

  return function (val, defaultProps) {
    return createShorthand(Component, mapValueToProps, val, defaultProps, generateKey);
  };
}
/**
 * Creates a `createShorthand` function that is waiting for a value and defaultProps.
 *
 * @param {function|string} Component A ReactClass or string
 * @param {function} mapValueToProps A function that maps a primitive value to the Component props
 * @param {boolean} [generateKey] Whether or not to generate a child key, useful for collections.
 * @return {function} A shorthand factory function waiting for `val` and `defaultProps`.
 */
Creates a `createShorthand` function that is waiting for a value and defaultProps.
@param {function|string} Component A ReactClass or string
@param {function} mapValueToProps A function that maps a primitive value to the Component props
@param {boolean} [generateKey] Whether or not to generate a child key, useful for collections.
@return {function} A shorthand factory function waiting for `val` and `defaultProps`.
Creates a ` createShorthand ` function that is waiting for a value and defaultProps . @param { function|string } Component A ReactClass or string @param { function } mapValueToProps A function that maps a primitive value to the Component props @param { boolean } [ generateKey ] Whether or not to generate a child key useful for collections . @return { function } A shorthand factory function waiting for ` val ` and ` defaultProps ` .
function createShorthandFactory(Component, mapValueToProps, generateKey) {
  if (typeof Component !== 'function' && typeof Component !== 'string') {
    throw new Error('createShorthandFactory() Component must be a string or function.');
  }
  return function (val, defaultProps) {
    return createShorthand(Component, mapValueToProps, val, defaultProps, generateKey);
  };
}
function createShorthandFactory ( Component , mapValueToProps , generateKey ) { if ( typeof Component !== 'function' && typeof Component !== 'string' ) { throw new Error ( 'createShorthandFactory() Component must be a string or function.' ) ; } return function ( val , defaultProps ) { return createShorthand ( Component , mapValueToProps , val , defaultProps , generateKey ) ; } ; }
Creates a `createShorthand` function that is waiting for a value and defaultProps.
Creates a ` createShorthand ` function that is waiting for a value and defaultProps .