Media queries would definitely be another option to solve this problem, sure.

I happened to choose React Hooks, but that's the great thing about development: many different solutions to solve a problem. :)

Paige Niedringhaus
Paige Niedringhaus

Written by Paige Niedringhaus

Staff Software Engineer at Blues, previously a digital marketer. Technical writer & speaker. Co-host of Front-end Fire & LogRocket podcasts

No responses yet