I'm trying to figure out how to dynamically generate sitemap in reactJS server side (express) web app. I'm using react router.
相关问题
- How to toggle on Order in ReactJS
- Refreshing page gives Cannot GET /page_url in reac
- Adding a timeout to a render function in ReactJS
- React Native Inline style for multiple Text in sin
- Issue with React.PropTypes.func.isRequired
相关文章
- Why would we use useEffect without a dependency ar
- Is it possible to get ref of props.children?
- Stateless function components cannot be given refs
- React testing library: Test attribute / prop
- React/JestJS/Enzyme: How to test for ref function?
- Material-UI [v0.x] RaisedButton on hover styles
- Remove expo from react native
- ReactJS toLowerCase is not a function
You can generate the React Website sitemap in the following way.
1.open your
index.html file
and add this script:2.open the following url: http://botmap.io/
3.in that page type your website url: like http://www.google.io then click on Go button.
4.It will crawl all of the anchor tags starting from the landing page and all of the inner pages in your reactjs web site.
That's it, after that you can save it as XML format.
It may be useful to others.
Thank you.
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?
Try this one to generate sitemap for websites containing a lot of javascript/angular/react etc. It worked
http://botmap.io/