react-responsive icon indicating copy to clipboard operation
react-responsive copied to clipboard

Rename breakpoints

Open Ayc0 opened this issue 1 year ago • 0 comments

The word breakpoint has been used from the creation of the library to be closer to what other libs are doing. But in react-responsive, those aren't breakpoints: when you mention sm, it's not a breakpoint, but a range between 2 breakpoints.

We should rename it range in the documentation, and instead of exposing useBreakpoint, we could expose useMediaRange (and keep the export useBreakpoint for now but deprecated and remove it in the next major)

Ayc0 avatar Jun 26 '23 09:06 Ayc0