google-map-react/develop/utils/createEagerFactory.js

13 lines
429 B
JavaScript

import createEagerElementUtil from './utils/createEagerElementUtil';
import isReferentiallyTransparentFunctionComponent
from './isReferentiallyTransparentFunctionComponent';
const createFactory = type => {
const isReferentiallyTransparent =
isReferentiallyTransparentFunctionComponent(type);
return (p, c) =>
createEagerElementUtil(false, isReferentiallyTransparent, type, p, c);
};
export default createFactory;