I do not know why I have been getting this error on my console, can anyone please let me know what are the ways I can get rid of this below error and why am I seeing this while the app works fine for me. I tried to correct the value using exact=“true” but has same issue
Warning: Received `true` for a non-boolean attribute `exact`.
If you want to write it to the DOM, pass a string instead: exact="true" or exact={value.toString()}.
The code which has exact in my nav component is as below
We need a little bit more context: you need to show some code that explains what you’re trying to do here, it’s not really possible to help without knowing that
exact isn’t defined for the <Route> components that match those link URLs (home, about and products), so exact can only ever be false for those nav links. You can’t set it to true for them without actually specifying that the routes should be exact
Thanks for all your help. I finally found the solution here . The issue was with link tag where I added exact as told a youtuber. But while i was reading through the debugging article and went to main issue I found the Link tag does not need exact thing with it.