React-router v4 now allows you to use regexes to match params -- https://reacttraining.com/react-router/web/api/Route/path-string
const NumberRoute = () => Number Route
;
const StringRoute = () => String Route
;
More info:
https://github.com/pillarjs/path-to-regexp/tree/v1.7.0#custom-match-parameters