react-with-breakpoints
Version:
Utility React component for altering the visual experience of responsive and lean webpages.
15 lines • 573 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function default_1(breakpoints, breakpoint, isHideAt) {
if (breakpoints === void 0) { breakpoints = []; }
if (breakpoint === void 0) { breakpoint = ''; }
if (isHideAt === void 0) { isHideAt = true; }
var shouldRender = true;
!isHideAt && (shouldRender = false);
breakpoints.map(function (b) {
breakpoint === b && (shouldRender = isHideAt ? false : true);
});
return shouldRender;
}
exports.default = default_1;
//# sourceMappingURL=set-should-render.js.map