I am trying to have separate routes but same component for add/edit forms in my react app like the below:
Reference
Version 5.2.0
https://reacttraining.com/react-router/web/api/Route/path-string-string