UNPKG

use-container-queries

Version:

A react hook that tracks a containers size and the range that width falls into within a list of breakpoints. This allows better responsive styling, where the user can style DOM elements based on their container, rather than the browser viewport.

9 lines (6 loc) 220 B
'use strict' if (process.env.NODE_ENV === 'production') { module.exports = require('./use-container-queries.cjs.production.min.js') } else { module.exports = require('./use-container-queries.cjs.development.js') }