Hook that returns whether what size the screen currently is, given a list
of defined sizes.
Component will re-render when the screen width changes between two size cutoffs,
returning the info about the current size.
Please note that the sizes must be in ascending order.
If only one size is provided, it will always be returned, regardless of the screen width.
Hook that returns whether what size the screen currently is, given a list of defined sizes. Component will re-render when the screen width changes between two size cutoffs, returning the info about the current size.
Please note that the sizes must be in ascending order. If only one size is provided, it will always be returned, regardless of the screen width.