Skip to content

Rename breakpoints #62

@Ayc0

Description

@Ayc0

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions