• Custom React hook that checks if the current viewport breakpoint is 'desktop'.

    Example

    const MyComponent = () => {
    const isDesktop = useIsViewportDesktop();

    return (
    <div>
    {isDesktop ? 'Viewport is of desktop size.' : 'Not desktop'}
    </div>
    );
    };

    Returns boolean