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)
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
rangein the documentation, and instead of exposinguseBreakpoint, we could exposeuseMediaRange(and keep the exportuseBreakpointfor now but deprecated and remove it in the next major)