Skip to content

Is withWidth HOC will support class component once useMediaQuery released #14101

Description

@Kaliyani

As per the meterial-ui document https://material-ui.com/layout/breakpoints/ under the section of JavaScript Media Queries,

withWidth higher-order component will be deprecated for the useMediaQuery hook when the React's hooks are released as stable.

if withWidth HOC deprecated, then how can we acheive the same feature in class component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGreat for first contributions. Enable to learn the contribution process.type: new featureExpand the scope of the product to solve a new problem.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions