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

    Example

    const MyComponent = () => {
    const isTablet = useIsViewportTablet();

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

    Returns boolean