score:3

You are importing the Sitemap constructor wrong.

Change this line:

const Sitemap = require('./').default;

to this:

const Sitemap = require('react-router-sitemap').default;

Should work now.


Related Query

More Query from same tag