DEV Community

Muhammad Sibtain
Muhammad Sibtain

Posted on

How to go to next post using Link href="" in next js?

the next button is creating an issue for me , i have an array of object and want to access it , but it gives undefined. i want to go on URL as localhost:3000/blog/6. and i have 6 objects in an array. but when i write blogDetails.id + 1 , it accross the my objects as which i do not want .URL becomes as : localhost:3000/blog/7

Top comments (0)