The docs says:
withWidth()
This higher-order component will be deprecated for the useMediaQuery hook.
Will this really happen? when and in what version?
I have many class components which mean cannot use useMediaQuery hook. But I really need to keep watch on screen size changes.
Also if Material-UI decides to get rid of withWidth() then why still use it in the demo? as in Responsive Drawer
This makes me confuse unsure to decide, should I just use withWidth() in my class components or should I convert them into functional component -which means a lot of work- to use useMediaQuery.
Does Material-UI plans to drop support for the class component?
The docs says:
withWidth()
Will this really happen? when and in what version?
I have many class components which mean cannot use
useMediaQueryhook. But I really need to keep watch on screen size changes.Also if Material-UI decides to get rid of
withWidth()then why still use it in the demo? as in Responsive DrawerThis makes me confuse unsure to decide, should I just use
withWidth()in my class components or should I convert them into functional component -which means a lot of work- to useuseMediaQuery.Does Material-UI plans to drop support for the class component?