When building in ReactJS I use Sass/Scss for styling. I can achieve my desired style with Sass, and the big advantage it has over styling from within ReactJS (Using the style property of the components and elements), is that it can include media queries.
I’m wondering if the same can be achieved from within ReactJS with the
window.innerWidth moves between breakpoints.
My questions are: 1. Is such a method being used? 2. Are there any inherent disadvantages for such a method?