react-router-to-array
Convert your react router component to an array with all static routes. Dynamic routes and their corresponding nested static routes are ignored. No match (*) route is also ignored. See usage example below.
Install
npm install react-router-to-array
Usage
;;;// or var reactRouterToArray = require('react-router-to-array'); console; //outputs: ['/', '/about', '/about/home', '/users']
Use case
I wrote this library mainly to use in conjuction with static-site-generator-webpack-plugin