DEV Community

Discussion on: How to build a Responsive πŸ“± React Navigation Menu with Styled-Components πŸ’»

Collapse
 
hyggedev profile image
Chris Hansen

Hey, that suck! Well let's figure it out.

First, are you using dev tools? Like chrome dev tools on the chrome browser? Firefox works well too.

Secondly, are you sure you have React router set up correctly? React-router just had an update, so you should be made aware. It's now React Router v6. I believe it's breaking changes if you don't have a production app yet. Minor changes tho, look at the docs, they show the old vs new way.

Thirdly, your body text made relative to your #000 background color?

Let's start here.

Collapse
 
rualan profile image
Allan

Thanks so much for your feedback. Yes I am using Chrome Dev Tools. The body text is different from the background colour. I realised that my React-Router wasn't set up correctly as you have stated, I did an update and it worked. Thanks for the assistance.