Skip to content

Consider removing "react-media" since custom conditional components reduce deps #60

@marcus-grant

Description

@marcus-grant

The media queries are pretty simple within react and could just as well be done with window or media globals within components and the using custom conditional components to render based on those widths. react-media doesn't seem to add a whole lot required for this project besides media query/condition handling and the condition handling is as simple as the code below, the rest is the media query, or the window global handling.

const Conditional = ({ condition, children }) => {
  !!condition && children
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions