react-responsive
react-responsive copied to clipboard
Rename breakpoints
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)