React rendering on different viewport

I'm currently making a custom Navbar with drop-downs, with should behave differently depending on a viewport, is it better to have same navbar written twice with html and hidden with css or rather change functionality of one depending on a viewport with React?
2 Replies
Vincent Udén
Vincent Udén17mo ago
I usually go for the css approach. Deciding what should be rendered using js to operate on screen size is less elegant to me
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View