react-screentype-hook
npm install react-screentype-hook> React hook to dynamically get current screen type (mobile, tablet, desktop, largeDesktop)

``sh
// with npm
npm install react-screentype-hook
// with yarn
yarn add react-screentype-hook
`
`javascript`
const screenType = useScreenType();
console.log(screenType);
``
{
isLargeDesktop: false,
isDesktop: false,
isMobile: true,
isTablet: false
}
`javascript
import React from "react";
import useScreenType from "react-screentype-hook";
function App() {
const screenType = useScreenType();
return (
export default App;
`
`javascript
import React from "react";
import useScreenType from "react-screentype-hook";
function App() {
const screenType = useScreenType({
mobile: 400,
tablet: 800,
desktop: 1000,
largeDesktop: 1600,
});
return (
export default App;
``