I am trying to have separate routes but same component for add/edit forms in my react app like the below:
Using different key for each route should force components to rebuild:
key