I\'m trying to figure out how to dynamically generate sitemap in reactJS server side (express) web app. I\'m using react router.
If your site frequently changes, you need to dynamically create the sitemap. I was stuck here and found this effective solution, which can even generate a real time sitemap by calling API for my website in ReactJS, using NextJs. dynamic Sitemap Steps
You can do this by creating most of the public files like
That too with preserving the behaviour of ReactJS.