How to generate sitemap with react router

Jan Omacka picture Jan Omacka · May 4, 2016 · Viewed 23.1k times · Source

I'm trying to figure out how to dynamically generate sitemap in reactJS server side (express) web app. I'm using react router.

Answer

samcorcos picture samcorcos · Sep 13, 2016

For simple ReactJS sitemap integration with React Router, you should check out the react-router-sitemap package.

It's fairly configurable as well, as you can see in the docs, so if you need to include change frequency or things like that, you should be able to do it no problem.

Or were you looking for a way to implement one yourself?