DEV Community

Discussion on: Unable to navigate to pages in react (MERN app) which is deployed on Heroku

 
deepikasharma5 profile image
Deepika Sharma

I don't think that works. And in my database the data is available. And I am able to render the map correctly in the home page. That means there is not issue in the API or map. I am just unable to navigate between the pages.

dev-to-uploads.s3.amazonaws.com/up...

Please check this link. This is my website home page. Other than the image everything is coming from API(mapping). All of them are working. But try to switch to another page using the navigation. That ismthe issue I am having.

af-global-2021.herokuapp.com/

Thread Thread
 
alizulfaqar profile image
Ali Zulfaqar • Edited

Sorry, i missed out the curly bracket. I've update my code, i've been using the code with no problem. Do try again , if it is not ok then there is other problem

Thread Thread
 
deepikasharma5 profile image
Deepika Sharma • Edited

Yes. I added with curly brackets in my code. But received that error

Thread Thread
 
alizulfaqar profile image
Ali Zulfaqar

oh if that's the case i'm not sure where to check anymore

Thread Thread
 
deepikasharma5 profile image
Deepika Sharma

Oh thankyou for you help.

Thread Thread
 
alizulfaqar profile image
Ali Zulfaqar

Sorry that i could not help you solve your problem

Thread Thread
 
deepikasharma5 profile image
Deepika Sharma

Ah that's fine. At lease you tried to help me :)