Custom React hook that detects the current viewport breakpoint name.
This hook uses the vevet library to determine the current viewport size
and assigns a corresponding breakpoint name ('desktop', 'tablet', or 'phone').
It updates the breakpoint name when the window is resized.
Custom React hook that detects the current viewport breakpoint name.
This hook uses the
vevet
library to determine the current viewport size and assigns a corresponding breakpoint name ('desktop', 'tablet', or 'phone'). It updates the breakpoint name when the window is resized.Example