A React Hook To Determine Component’s Size & Media Queries – Cool Dimensions

Category: Others , React
Author: wellyshen
Views Total: 13
Official Page: Go to website
License: MIT

The Cool Dimensions library provides a React hook to measure an element’s size and handle responsive components using ResizeObserver API.

Easy to use and super tiny. Also compatible with Server-side rendering.

Installation:

# NPM
$ npm install react-cool-dimensions --save

# Bower
$ bower install react-cool-dimensions --save

Preview:

A React Hook To Determine Component's Size & Media Queries - Cool Dimensions